12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using UnityEngine;
- namespace Game
- {
- public class GameLiftState : GameState
- {
- public GameLiftState(GameCore gameCore) : base(gameCore)
- {
- }
- public override void PlayBattle()
- {
- // 啥都不做
- }
- public override void BattleStart()
- {
- // 啥都不做
- }
- public override void LiftCock()
- {
-
- }
- public override void ExitBattle()
- {
- // 啥都不做
- }
- public override void EndBattle()
- {
- // 啥都不做
- }
- public override void EnterState()
- {
- _gameCore.liftTimes--;
- _gameCore.masterBack.Item1 = false;
- _gameCore.masterBack.Item2 = false;
- foreach (var masterActionComp in _gameCore.masterDict)
- {
- masterActionComp.Value.MasterController.Walk();
- }
- }
- public override void ExitState()
- {
- _gameCore.masterBack = (false, false);
- }
- }
- }
|