mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
32 lines
358 B
C#
32 lines
358 B
C#
namespace MoleMole
|
|
{
|
|
public abstract class State<T>
|
|
{
|
|
protected T _owner;
|
|
|
|
public bool active { get; private set; }
|
|
|
|
public State(T t)
|
|
{
|
|
_owner = t;
|
|
}
|
|
|
|
public virtual void Enter()
|
|
{
|
|
}
|
|
|
|
public virtual void Update()
|
|
{
|
|
}
|
|
|
|
public virtual void Exit()
|
|
{
|
|
}
|
|
|
|
public void SetActive(bool isActive)
|
|
{
|
|
active = isActive;
|
|
}
|
|
}
|
|
}
|