public void Buy() { if (ScoreManager.Score >= Price) { BoidsManager.Spawn(fishType); ScoreManager.Score -= Price; Debug.Log(fishType.ToString() + " bought!"); } else { Debug.Log("not enough money"); // SoundManager.PlayAudio(SOUNDS.INVALID_INPUT, 0.3f); } }
public void Buy() { if (ScoreManager.Score >= Price) { Upgrades.PointModifiers[fishType] += 1f; ScoreManager.Score -= Price; UpdateText(); Debug.Log(fishType.ToString() + " upgrade bought!"); } else { Debug.Log("not enough money"); // SoundManager.PlayAudio(SOUNDS.INVALID_INPUT, 0.3f); } }