Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
    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);
    }
        void ReleaseDesignerOutlets()
        {
            if (BarabanView != null)
            {
                BarabanView.Dispose();
                BarabanView = null;
            }

            if (CalculateButton != null)
            {
                CalculateButton.Dispose();
                CalculateButton = null;
            }

            if (FirstCurrencyLabel != null)
            {
                FirstCurrencyLabel.Dispose();
                FirstCurrencyLabel = null;
            }

            if (FirstValueTextField != null)
            {
                FirstValueTextField.Dispose();
                FirstValueTextField = null;
            }

            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

            if (SecondCurrencyLabel != null)
            {
                SecondCurrencyLabel.Dispose();
                SecondCurrencyLabel = null;
            }

            if (SecondValueLabel != null)
            {
                SecondValueLabel.Dispose();
                SecondValueLabel = null;
            }
        }