public void AttemptBuyBanana() { PlayerInventory playerInventory = PlayerInventory.instance; if (playerInventory.GetMoney() < bananaPrice) { return; // Cancels purchase because too poor } playerInventory.AddBanana(); playerInventory.SubtractMoney(bananaPrice); if (purchaseNeutralSFX) { purchaseNeutralSFX.Play(); } }