void OnEnable()
 {
     if(target && _curves.Count > 0)
     {
         int idx = Random.Range(0, _curves.Count);
         _coroutine.Stop();
         _coroutine = StartAdvCoroutine(Run_Coroutine(_curves[idx]));
     }
 }
Example #2
0
 /// <summary>
 /// This will fire every time the debug panel tab is clicked, which will in turn start a coroutine that waits a frame,
 /// then attempts to get various UI elements that need to be tweaked.
 /// </summary>
 void SRDebug_OnClickTab()
 {
     _findDebugPanelElementsCoroutine.Stop();
     _findDebugPanelElementsCoroutine = StartAdvCoroutine(SRDebug_OnClickTab_DelayedCoroutine());
 }