Ejemplo n.º 1
0
 public void OnInteract(T_Player player)
 {
     if (vegetableName == null)
     {
         vegetableName = player.RemoveVegetable();
         if (vegetableName != null)
         {
             vegetableUI.text = vegetableName;
         }
     }
     else
     {
         if (player.AddVegetable(vegetableName))
         {
             Reset();
         }
     }
 }
 public void OnInteract(T_Player player)
 {
     player.AddVegetable(vegetableName);
     musicSource.clip = musicClip;
     musicSource.Play();
 }