private void TryBuyCube() { if (CurrentUserInfo.DiamondsAmount >= _cubeToBuy.Price) { CurrentUserInfo.BuyCube(_cubeToBuy.gameObject.name); CurrentUserInfo.DiamondsAmount -= _cubeToBuy.Price; this.PlayBuyCubeSound(); OnCubeBought(_cubeToBuy); } else { this.PlayPurchaseRejectedSound(); } }