public override void Execute(Player player) { if (ClapHandsSwitch) { TipAnimation.SetPlayerCanClapHands(true); if (GUItest.playerClapHands) { player.GetFSM().ChangeState(player.States.HandClapingState); } } else if (player.GetWaittime() < Const.PLAYER_CLAPHANDS_WAIT_TIME) { TipAnimation.SetPlayerCanClapHands(false); } else { player.GetFSM().ChangeState(player.States.IdleState); } }
public override void Exit(Player player) { TipAnimation.SetPlayerCanClapHands(false); player.CleanWaittime(); ClapHandsSwitch = false; }