Skip to content

Instantly share code, notes, and snippets.

@HassakuTb
Last active April 19, 2016 04:19
Show Gist options
  • Save HassakuTb/04676820bdb1be2b2ca7c73a187bd520 to your computer and use it in GitHub Desktop.
Save HassakuTb/04676820bdb1be2b2ca7c73a187bd520 to your computer and use it in GitHub Desktop.
using UnityEngine;
[CreateAssetMenu(menuName = "ScriptableObject/Enemy", fileName = "NewEnemy")]
public class Enemy : ScriptableObject{
public string Name;
public int Hp;
public int Power;
public virtual void Damage(int damageValue){
Hp -= damageValue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment