private void ToGunAction() { TouchController.LockTouchObject.SetActive(true); if (_settings != null) { MainCamera.GetComponent <CanvasAlphaController>().SubController = null; Destroy(_settings.gameObject); } BarabanView.SetActive(isBarabanViewShow); ChangeCameraState(CameraMenuState[0]); if (StartButton != null) { StartButton.SetActive(GameState == GameStateEnum.StartState); } }
public void ToSettings() { TouchController.LockTouchObject.SetActive(false); switchSceneAction = ToSettingsAction; _settings = Instantiate(SettingdUI); _settings.parent = this.transform; MainCamera.GetComponent <CanvasAlphaController>().SubController = _settings.GetComponent <UISettings>().Group; // SettingRestartGame.SetActive(GameState == GameStateEnum.FireState); BarabanView.SetActive(false); if (isMenuShow) { ShowSettingsButtons(); } CameraAnimator.SetBool("Show", true); }