Ludum Dare 50 Theme: Delay the inevitable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
508 B

using UnityEngine;
namespace Enemies.States
{
public class DieState : IState
{
private Enemy context;
public DieState(Enemy context)
{
this.context = context;
}
public void Enter()
{
Debug.Log("Enemy died");
context.currentState = Enemy.States.Die;
Object.Destroy(context.gameObject);
}
public void Execute()
{
}
public void Exit()
{
}
}
}