protected override void OnDisable() { base.OnDisable(); if (setFocusOnEnable) { if (useStairFocus) { FocusManager.DownLayer(); } else { FocusManager.ChangeLayer(_oldLayerFocus); } if (storageFocusedObject) { FocusManager.RestoreFocusSaved(); } } FocusManager.OnChangeLayer -= OnChangeLayer; GameUtilities.StopTimer <LayerFocus>(OnChangeLayer); }
public override void Stop() { if (seeker) { seeker.OnFinishSeek -= PreNextWayPoint; seeker.Stop(); GameUtilities.StopTimer(NextWayPoint); } }
public static void SetNewSelection(Selectable selectable, float wait = 0) { GameUtilities.StopTimer(WaitSetNewSelection); if (selectable != null) { _currentSelectable = selectable.gameObject; if (wait == 0) { SetNewSelection(); } else { GameUtilities.WaitForMethod(wait, WaitSetNewSelection, TimeType.Unscaled); } } }
protected void OnDestroy() { GameUtilities.StopTimer(NextWayPoint); }
protected override void OnDestroy() { base.OnDestroy(); GameUtilities.StopTimer(WaitSetNewSelection); }