/// <summary> /// Plants the seed in this Planter instance. /// </summary> /// <param name="seed">Seed.</param> void PlantSeed(VRTK_InteractableObject seed) { seedInPlanter = seed.GetComponent <Flori_Seed>(); hasCrop = true; if (seed.name == "If You Dare") { GameController.Instance.LeaveTheGarden(); } else if (seed.name == "Be Happy") { LockSeedInPlanter(); GameController.Instance.OpenIntroPath(); } }
/// <summary> /// Removes the crop from this planter. /// </summary> public void RemoveCropFrom() { seedInPlanter = null; hasCrop = false; }