IEnumerator WaitAFrame()
    {
        fEgg.gameObject.SetActive(true);
        yield return(new WaitForEndOfFrame());

        gameObject.SetActive(false);
        fEgg.StartCooking();
        Destroy(gameObject);
    }
Exemplo n.º 2
0
    IEnumerator WaitToCook(Food_O food)
    {
        yield return(new WaitForSeconds(.2f));

        food.StartCooking();
    }