change to state machine
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class PlayerState
|
||||
{
|
||||
protected readonly CharacterCtrl _characterCtrl;
|
||||
public PlayerState(CharacterCtrl characterCtrl)
|
||||
{
|
||||
_characterCtrl = characterCtrl;
|
||||
}
|
||||
public abstract void Enter();
|
||||
public abstract void Exit();
|
||||
public abstract void Update();
|
||||
}
|
||||
Reference in New Issue
Block a user