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; }
private void GameStartDelay(GameType type) { if (type != GameType.FlyingSaucer) { return; } UiSys.OpenUi(ScoreBoard.EntityName); }
public void Interactive(ControlInfo info) { if (!info.Down) { return; } ControlSys.ShieldValue.Request(OperationPanel, 1); var panel = UiSys.OpenUi <StorageBoxPanel>(OperationPanel); //panel.PackageCellAdapter.SetPackage(_Package); }
public override void Exec() { UiSys.OpenUi(UiName); }