//Calls the passed void function with no arguments after delay
    public static IEnumerator CallWithDelay(myDelegateInt del, int num, float delay)
    {
        yield return(new WaitForSeconds(delay));

        del(num);
    }
Ejemplo n.º 2
0
 //Calls the passed void function with no arguments after delay
 public static IEnumerator CallWithDelay(myDelegateInt del, int num, float delay)
 {
     yield return new WaitForSeconds(delay);
     del(num);
 }