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
|
|
|
}
|