Ejemplo n.º 1
0
    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);
        }
    }
Ejemplo n.º 2
0
    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);
        }
    }