IEnumerator CoPlantAcorn(PlayerItem other) { other.DropItemAnimationStart(); yield return(new WaitForSeconds(2)); GetComponent <EventWaterSoil>().isAcornPlanted = true; acorn.DestroyCollisions(); Destroy(acorn.gameObject); Destroy(this); }
IEnumerator CoWaterSoil(PlayerItem other) { other.DropItemAnimationStart(); yield return(new WaitForSeconds(1)); PresentTree.SetActive(true); FutureTree.SetActive(true); Destroy(waterBucket.gameObject); Destroy(this); }