using System.Collections; using System.Collections.Generic; using UnityEngine; public class TaFangState : GameState { public override void OnGameStateEnter() { GameRoot.Instance.menuWindow.gameObject.SetActive(true); GameRoot.Instance.infoWindow.gameObject.SetActive(true); GameRoot.Instance.gameModeWindow.SetTaFangModeActive(true); GameRoot.Instance.menuWindow.CameraMovePanel.SetActive(true); GameRoot.Instance.GameStateTxt.text = "塌方巡检与预警"; GameRoot.Instance.gameModeWindow.publicUIWnd.SetActive(true); } public override void OnGameStateExit() { GameRoot.Instance.infoWindow.gameObject.SetActive(false); GameRoot.Instance.menuWindow.gameObject.SetActive(false); GameRoot.Instance.gameModeWindow.SetTaFangModeActive(false); GameRoot.Instance.menuWindow.CameraMovePanel.SetActive(false); GameRoot.Instance.gameModeWindow.publicUIWnd.SetActive(false); } public override void OnGameStateUpdate() { } public override void ResetState() { } }