Last active
April 19, 2016 04:19
-
-
Save HassakuTb/04676820bdb1be2b2ca7c73a187bd520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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