public override void OnLeave() { NewbieManager.Instance.StopVoiceHintOnce(); Singleton <NewbieView> .Instance.HideDispSkillInfoHint(); Singleton <NewbieView> .Instance.HideMask(); CtrlManager.CloseWindow(WindowID.NewbieView); if (Singleton <HUDModuleManager> .Instance != null) { FunctionBtnsModule module = Singleton <HUDModuleManager> .Instance.GetModule <FunctionBtnsModule>(EHUDModule.FunctionBtns); if (module != null) { module.NewbieForceHideSkillInfo(); } } }
public void ChangeCameraController(CameraControllerType cameraControllerType) { if (GameManager.Instance.ReplayController.IsReplayStart) { cameraControllerType = CameraControllerType.Center; } if (cameraControllerType != this._currenCameraControllerType) { if (this._curCameraController != null) { this._curCameraController.OnExit(); } Units player = PlayerControlMgr.Instance.GetPlayer(); if (this._currenCameraControllerType != CameraControllerType.MoveByTap) { this._lastCameraControllerType = this._currenCameraControllerType; } if (this._cameraControllerTypeBeforeDeath == CameraControllerType.None) { this._cameraControllerTypeBeforeDeath = this._currenCameraControllerType; } this._currenCameraControllerType = cameraControllerType; this._curCameraController = this._controllers[this._currenCameraControllerType]; this._curCameraController.OnEnter(); if (Singleton <GoldView> .Instance.gameObject) { Singleton <GoldView> .Instance.SetLockViewIcon(cameraControllerType); } if (Singleton <HUDModuleManager> .Instance.gameObject) { FunctionBtnsModule module = Singleton <HUDModuleManager> .Instance.GetModule <FunctionBtnsModule>(EHUDModule.FunctionBtns); if (module != null) { module.SetLockViewIcon(cameraControllerType); } if (player != null && player.isLive) { this._cameraControllerTypeBeforeDeath = this._currenCameraControllerType; } } } }