public void OnInteract(T_Player player) { if (beingUsed) { return; } if (vegetableName == null) { vegetableName = player.RemoveVegetable(); if (vegetableName != null) { if (!player.IsChoppingReduntant(vegetableName)) { vegetableUI.text = vegetableName; this.player = player; SetChopping(true); MusicSource.clip = MusicClip; MusicSource.Play(); } else { vegetableName = null; vegetableUI.text = "-"; } } } }
public void OnInteract(T_Player player) { if (vegetableName == null) { vegetableName = player.RemoveVegetable(); if (vegetableName != null) { vegetableUI.text = vegetableName; } } else { if (player.AddVegetable(vegetableName)) { Reset(); } } }