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

22 lines
491 B
C#
Raw Normal View History

2019-04-27 20:19:35 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2019-04-28 14:34:50 +00:00
public class EntityMonster : Entity
2019-04-27 20:19:35 +00:00
{
2019-04-28 14:44:16 +00:00
public virtual string Name {
get {
Debug.LogWarning("No name given to a monster");
return "";
}
2019-04-29 08:39:48 +00:00
}
2019-04-28 14:44:16 +00:00
2019-04-27 20:19:35 +00:00
public virtual void OnTurn(){
Debug.LogWarning("OnTurn() not overridden");
}
2019-04-28 14:44:16 +00:00
public override void Die() {
messageBar.Write("Killed: " + Name, Color.red);
Destroy(gameObject);
}
2019-04-27 20:19:35 +00:00
}