Second commit
This commit is contained in:
commit
36840f3ad4
999 files changed
+61364
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
|
||||
namespace Code.Infrastructure.StateMachine
|
||||
{
|
||||
public abstract class BaseState<TEnum, TStateMachineContext>
|
||||
{
|
||||
public abstract TEnum MyState { get; }
|
||||
|
||||
protected BaseState(TStateMachineContext context)
|
||||
{
|
||||
Context = context;
|
||||
}
|
||||
|
||||
protected TStateMachineContext Context { get; }
|
||||
|
||||
public virtual UniTask EnterState() => UniTask.CompletedTask;
|
||||
public virtual UniTask ExitState() => UniTask.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user