GameLiftState.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using UnityEngine;
  2. namespace Game
  3. {
  4. public class GameLiftState : GameState
  5. {
  6. public GameLiftState(GameCore gameCore) : base(gameCore)
  7. {
  8. }
  9. public override void PlayBattle()
  10. {
  11. // 啥都不做
  12. }
  13. public override void BattleStart()
  14. {
  15. // 啥都不做
  16. }
  17. public override void LiftCock()
  18. {
  19. }
  20. public override void ExitBattle()
  21. {
  22. // 啥都不做
  23. }
  24. public override void EndBattle()
  25. {
  26. // 啥都不做
  27. }
  28. public override void EnterState()
  29. {
  30. _gameCore.liftTimes--;
  31. _gameCore.masterBack.Item1 = false;
  32. _gameCore.masterBack.Item2 = false;
  33. foreach (var masterActionComp in _gameCore.masterDict)
  34. {
  35. masterActionComp.Value.MasterController.Walk();
  36. }
  37. }
  38. public override void ExitState()
  39. {
  40. _gameCore.masterBack = (false, false);
  41. }
  42. }
  43. }