1
Fork 0
slime-blood-and-pain/Assets/Scripts/EntityMonster.cs

22 lines
No EOL
492 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EntityMonster : Entity
{
public virtual string Name {
get {
Debug.LogWarning("No name given to a monster");
return "";
}
}
public virtual void OnTurn(){
Debug.LogWarning("OnTurn() not overridden");
}
public override void Die() {
messageBar.Write("Killed: " + Name, Color.red);
Destroy(gameObject);
}
}