예제 #1
0
    IEnumerator CoPlantAcorn(PlayerItem other)
    {
        other.DropItemAnimationStart();

        yield return(new WaitForSeconds(2));

        GetComponent <EventWaterSoil>().isAcornPlanted = true;

        acorn.DestroyCollisions();

        Destroy(acorn.gameObject);
        Destroy(this);
    }
예제 #2
0
    IEnumerator CoWaterSoil(PlayerItem other)
    {
        other.DropItemAnimationStart();

        yield return(new WaitForSeconds(1));

        PresentTree.SetActive(true);
        FutureTree.SetActive(true);

        Destroy(waterBucket.gameObject);

        Destroy(this);
    }