Example #1
0
 private void Run()
 {
     if (Math.Abs(_delayInitialization) < 0.0001)
     {
         RunEvent();
     }
     else
     {
         StartCoroutine(InvokeAction.Timer(_delayInitialization, RunEvent));
     }
 }
Example #2
0
 internal void Destroy(float delay) => StartCoroutine(InvokeAction.Timer(delay, delegate { Destroy(gameObject); }));