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.
26 lines
525 B
26 lines
525 B
3 years ago
|
using UnityEngine;
|
||
|
namespace Enemies.States
|
||
|
{
|
||
|
public class DieState:IState
|
||
|
{
|
||
|
private Enemy context;
|
||
|
public DieState(Enemy context)
|
||
|
{
|
||
|
this.context = context;
|
||
|
}
|
||
|
public void Enter()
|
||
|
{
|
||
|
throw new System.NotImplementedException();
|
||
|
}
|
||
|
|
||
|
public void Execute()
|
||
|
{
|
||
|
Object.Destroy(context.gameObject);
|
||
|
}
|
||
|
|
||
|
public void Exit()
|
||
|
{
|
||
|
throw new System.NotImplementedException();
|
||
|
}
|
||
|
}
|
||
|
}
|