예제 #1
0
        public void Switch()
        {
            if (!Allowed)
            {
                return;
            }

            if (!Enable)
            {
                _MainCamera.fieldOfView = EnableFOV;
                PostProcessingController.Instance.AimScope.Enable = true;
                UiSys.CloseUi(AIM_POINT_UI_NAME);
                _PlayerSensitive.AddBuff(_AimScopeSensitiveScale, Operator.Mul, 0);
                PostProcessingController.Instance.DepthOfField.Enable = true;
            }
            else
            {
                _MainCamera.fieldOfView = _BaseFOV;
                PostProcessingController.Instance.AimScope.Enable = false;
                UiSys.OpenUi(AIM_POINT_UI_NAME);
                _PlayerSensitive.RemoveBuff(_AimScopeSensitiveScale);
                PostProcessingController.Instance.DepthOfField.Enable = false;
            }

            Enable = !Enable;
        }
예제 #2
0
 private void GameStartDelay(GameType type)
 {
     if (type != GameType.FlyingSaucer)
     {
         return;
     }
     UiSys.OpenUi(ScoreBoard.EntityName);
 }
예제 #3
0
 public void Interactive(ControlInfo info)
 {
     if (!info.Down)
     {
         return;
     }
     ControlSys.ShieldValue.Request(OperationPanel, 1);
     var panel = UiSys.OpenUi <StorageBoxPanel>(OperationPanel);
     //panel.PackageCellAdapter.SetPackage(_Package);
 }
예제 #4
0
 public override void Exec()
 {
     UiSys.OpenUi(UiName);
 }