Exemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.tag == "Death")
        {
            Reset();
        }

        if (collision.tag == "Pickup")
        {
            pickupCount++;
            ScoreMgmt.IncreaseScore(gameObject.name, pickupScore);
            gameMgmt.ShowScores(gameObject.name);
            gameMgmt.ShowDeaths(gameObject.name);
        }
    }
Exemplo n.º 2
0
 public void AddPoints(int points)
 {
     ScoreMgmt.IncreaseScore(gameObject.name, points);
     gameMgmt.ShowScores(gameObject.name);
     gameMgmt.ShowDeaths(gameObject.name);
 }