public static IEnumerator WorkAfterFrame(vFunv fun, int frame) { while (frame-- != 0) { yield return(new WaitForEndOfFrame()); } fun(); }
public static IEnumerator WorkAfterSeconds(vFunv fun, float time) { yield return(new WaitForSeconds(time)); fun(); }