Ejemplo n.º 1
0
        public void SetCameraMode(SceneBattle.CameraMode mode)
        {
            SceneBattle instance = SceneBattle.Instance;

            if (!Object.op_Inequality((Object)instance, (Object)null) || !instance.IsControlBattleUI(SceneBattle.eMaskBattleUI.CAMERA))
            {
                return;
            }
            instance.OnCameraModeChange(mode);
            switch (mode)
            {
            case SceneBattle.CameraMode.DEFAULT:
                if (Object.op_Inequality((Object)this.DefaultButton, (Object)null))
                {
                    this.DefaultButton.SetActive(false);
                }
                if (Object.op_Inequality((Object)this.UpViewButton, (Object)null))
                {
                    this.UpViewButton.SetActive(true);
                }
                if (!Object.op_Inequality((Object)this.BattleCameraControl, (Object)null))
                {
                    break;
                }
                this.BattleCameraControl.SetDisp(true);
                break;

            case SceneBattle.CameraMode.UPVIEW:
                if (Object.op_Inequality((Object)this.DefaultButton, (Object)null))
                {
                    this.DefaultButton.SetActive(true);
                }
                if (Object.op_Inequality((Object)this.UpViewButton, (Object)null))
                {
                    this.UpViewButton.SetActive(false);
                }
                if (!Object.op_Inequality((Object)this.BattleCameraControl, (Object)null))
                {
                    break;
                }
                this.BattleCameraControl.SetDisp(false);
                break;
            }
        }