mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-04 14:15:54 +00:00
Spider bomb in FSM
This commit is contained in:
parent
d77fc7bf33
commit
4913eba12e
20 changed files with 300 additions and 48 deletions
|
|
@ -7,8 +7,11 @@ public abstract partial class PlayerArea2DModule : Area2D, IModule<PlayerState,
|
|||
public IStateMachine<PlayerState, CharacterBody2D> StateMachine { get; private set; }
|
||||
|
||||
public CharacterBody2D CharacterBody => StateMachine.MainObject;
|
||||
|
||||
|
||||
|
||||
|
||||
public abstract void EnterState(PlayerState state);
|
||||
public abstract void ExitState(PlayerState state);
|
||||
|
||||
public virtual void Init(IStateMachine<PlayerState, CharacterBody2D> machine)
|
||||
{
|
||||
StateMachine = machine;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue