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

17 lines
383 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-29 17:53:45 +00:00
public string monsterName;
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() {
2019-04-29 17:53:45 +00:00
messageBar.Write("Killed: " + monsterName, Color.red);
2019-04-28 14:44:16 +00:00
Destroy(gameObject);
}
2019-04-27 20:19:35 +00:00
}