32 lines
769 B
C#
32 lines
769 B
C#
![]() |
using BlueWater.Interfaces;
|
||
|
|
||
|
namespace BlueWater.Npcs.Crews
|
||
|
{
|
||
|
public class CleaningTableState : IState<Crew>
|
||
|
{
|
||
|
public void EnterState(Crew character)
|
||
|
{
|
||
|
character.SpineController.PlayAnimation(CrewSpineAnimation.CleaningTable, true);
|
||
|
}
|
||
|
|
||
|
public void UpdateState(Crew character)
|
||
|
{
|
||
|
if (character.IsCleaningTable) return;
|
||
|
|
||
|
if (character.IsMoving)
|
||
|
{
|
||
|
character.TransitionToState(character.WalkingState);
|
||
|
}
|
||
|
else if (!character.IsMoving)
|
||
|
{
|
||
|
character.TransitionToState(character.IdleState);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void ExitState(Crew character)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|