IEnumerator WaitAFrame() { fEgg.gameObject.SetActive(true); yield return(new WaitForEndOfFrame()); gameObject.SetActive(false); fEgg.StartCooking(); Destroy(gameObject); }
IEnumerator WaitToCook(Food_O food) { yield return(new WaitForSeconds(.2f)); food.StartCooking(); }