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