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.masterBack.Item1 = false; _gameCore.masterBack.Item2 = false; foreach (var cockActionComp in _gameCore.cockActionComps) { cockActionComp.Value.gameObject.GetComponent().isTrigger = true; } foreach (var masterActionComp in _gameCore.masterDict) { masterActionComp.Value.MasterController.Walk(); } } public override void ExitState() { foreach (var cockActionComp in _gameCore.cockActionComps) { cockActionComp.Value.gameObject.GetComponent().isTrigger = false; } } } }