public override void ExitState() { CustomDebug.LogMessage("Idle exit!", DebugColor.red); ICommand command = new ChangeAnimationCommand(owner, GetType()); command.Execute(); }
public override void ExitState() { _movementLogic.InteractObstacle(); CustomDebug.LogMessage("Move exit!", DebugColor.red); ICommand command = new ChangeAnimationCommand(owner, GetType()); command.Execute(); }
public override void EnterState() { CustomDebug.LogMessage("Move enter!", DebugColor.green); CustomDebug.LogMessage(owner.StatusController.GetSpeedModificator()); ICommand command = new ChangeAnimationCommand(owner, GetType(), owner.StatusController.GetSpeedModificator()); command.Execute(); }
public override void ExitState() { owner.StatusController.SetReloadTime(Time.time); CustomDebug.LogMessage("Attack exite!", DebugColor.red); ICommand command = new ChangeAnimationCommand(owner, GetType()); command.Execute(); }
public override Type UpdateState() { if (Time.time >= timerToFlip) { ICommand command = new ChangeAnimationCommand(owner, GetType(), 1f);//TODO подумать как отвязаться от фикс значеий! command.Execute(); timerToFlip = ResetTimer(); } return(GetType()); }