Skip to content

Instantly share code, notes, and snippets.

@saitocastel1900
Created November 7, 2022 03:44
Show Gist options
  • Save saitocastel1900/e9db1d56bf4f00a581d28ab5ae1b4b3d to your computer and use it in GitHub Desktop.
Save saitocastel1900/e9db1d56bf4f00a581d28ab5ae1b4b3d to your computer and use it in GitHub Desktop.
public abstract class Enemy : MonoBehaviour
{
protected string _name;
protected int _hp;
public abstract string GetName();
public abstract int GetHp();
public abstract void Attack(int damaged);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment