public void OnTrickEnded(TrickAction trickAction) { if (!IsDoingTrick()) { SaberClashCheckerEnabled = true; } }
public void Add(TrickAction action, InputHandler handler) { if (action == TrickAction.None) { return; } TrickHandlerSets[action].Add(handler); }
private void OnTrickDeactivated(TrickAction trickAction) { var trick = Tricks[trickAction]; if (trick.State != TrickState.Started) { return; } trick.EndTrick(); }
public void OnTrickStarted(TrickAction trickAction) { SaberClashChecker.enabled = false; if (trickAction == TrickAction.Throw && PluginConfig.Instance.SlowmoDuringThrow && !_slowmoApplied) { var timeScale = AudioTimeSyncController.timeScale; if (_endSlowmoCoroutine != null) { StopCoroutine(_endSlowmoCoroutine); timeScale = _endSlowmoTarget; } _applySlowmoCoroutine = StartCoroutine(ApplySlowmoSmooth(PluginConfig.Instance.SlowmoAmount, timeScale)); _slowmoApplied = true; } }
//private void Awake() //{ // //var scoreController = FindObjectsOfType<ScoreController>().FirstOrDefault(); // //BeatmapObjectManager = scoreController.GetField<BeatmapObjectManager, ScoreController>("_beatmapObjectManager"); // //BeatmapObjectManager.noteWasSpawnedEvent += OnNoteWasSpawned; // //if (PluginConfig.Instance.DisableIfNotesOnScreen) StartCoroutine(NoteSpawnTimer()); //} public void OnTrickStarted(TrickAction trickAction) { SaberClashCheckerEnabled = false; if (trickAction == TrickAction.Throw && _config.SlowmoDuringThrow && !_isMultiplayer && !_slowmoApplied) { var timeScale = _audioTimeSyncController.timeScale; if (_endSlowmoCoroutine != null) { SharedCoroutineStarter.instance.StopCoroutine(_endSlowmoCoroutine); timeScale = _endSlowmoTarget; } _applySlowmoCoroutine = SharedCoroutineStarter.instance.StartCoroutine(ApplySlowmoSmooth(_config.SlowmoAmount, timeScale)); _slowmoApplied = true; } }
public void OnTrickEndRequested(TrickAction trickAction) { if (trickAction == TrickAction.Throw) { if (_config.SlowmoDuringThrow && !_isMultiplayer && !IsTrickInState(trickAction, TrickState.Started) && _slowmoApplied) { if (_applySlowmoCoroutine != null) { SharedCoroutineStarter.instance.StopCoroutine(_applySlowmoCoroutine); } _endSlowmoCoroutine = SharedCoroutineStarter.instance.StartCoroutine(EndSlowmoSmooth()); _slowmoApplied = false; } } }
public void OnTrickEndRequested(TrickAction trickAction) { if (trickAction == TrickAction.Throw) { if (PluginConfig.Instance.SlowmoDuringThrow && !IsTrickInState(trickAction, TrickState.Started) && _slowmoApplied) { if (_applySlowmoCoroutine != null) { StopCoroutine(_applySlowmoCoroutine); } _endSlowmoCoroutine = StartCoroutine(EndSlowmoSmooth()); _slowmoApplied = false; } } }
private void OnTrickActivated(TrickAction trickAction, float val) { var trick = Tricks[trickAction]; trick.Value = val; if (trick.State != TrickState.Inactive) { return; } if (GlobalTrickManager.Instance.AudioTimeSyncController.state == AudioTimeSyncController.State.Paused) { return; } trick.StartTrick(); }
private void OnTrickActivated(TrickAction trickAction, float val) { if (!CanDoTrick()) { return; } var trick = Tricks[trickAction]; trick.Value = val; if (trick.State != TrickState.Inactive) { return; } if (_audioTimeSyncController.state == AudioTimeSyncController.State.Paused) { return; } trick.StartTrick(); }
private void OnTrickEnding(TrickAction trickAction) { _globalTrickManager.OnTrickEndRequested(trickAction); }
private void OnTrickStart(TrickAction trickAction) { _globalTrickManager.OnTrickStarted(trickAction); }
public HashSet <InputHandler> GetHandlers(TrickAction action) { return(TrickHandlerSets[action]); }
private void OnTrickStart(TrickAction trickAction) { GlobalTrickManager.Instance.OnTrickStarted(trickAction); }
private void OnTrickEnd(TrickAction trickAction) { GlobalTrickManager.Instance.OnTrickEnded(trickAction); }
private void OnTrickEnding(TrickAction trickAction) { GlobalTrickManager.Instance.OnTrickEndRequested(trickAction); }
private void OnTrickEnd(TrickAction trickAction) { _globalTrickManager.OnTrickEnded(trickAction); }
public bool IsTrickInState(TrickAction trickAction, TrickState state) { return(Tricks[trickAction].State == state); }
public bool IsTrickInState(TrickAction trickAction, TrickState state) { return(LeftSaberTrickManager.IsTrickInState(trickAction, state) || RightSaberTrickManager.IsTrickInState(trickAction, state)); }