private void PreNextWayPoint() { float time = _nextWaypont.waitAtWaypoint; if (time != 0) { GameUtilities.WaitForMethod(time, NextWayPoint); } else { 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); } } }
// Update is called once per frame private void OnNewFocus(GameObject newObj) { GameUtilities.WaitForMethod <GameObject>(0.01f, ChangeScroll, newObj, TimeType.Unscaled); }
protected override void OnEnableAfterStart() { base.OnEnableAfterStart(); GameUtilities.WaitForMethod(0.1f, AddInput, TimeType.Unscaled); }
protected override void Start() { base.Start(); GameUtilities.WaitForMethod <LayerFocus>(0.01f, OnChangeLayer, FocusManager.CurrentLayerFocus, TimeType.Unscaled); }