31 lines
564 B
C#
31 lines
564 B
C#
using UnityEngine;
|
|
|
|
namespace Ether
|
|
{
|
|
public abstract class StateBase
|
|
{
|
|
public StateMachine StateMachine{ get; set; }
|
|
|
|
public abstract void Enter();
|
|
public abstract void Execute();
|
|
public abstract void Exit();
|
|
}
|
|
|
|
public class IdleState : StateBase
|
|
{
|
|
public override void Enter()
|
|
{
|
|
Debug.LogError("IdleState Enter");
|
|
}
|
|
|
|
public override void Execute()
|
|
{
|
|
|
|
}
|
|
|
|
public override void Exit()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |