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