Exemplo n.º 1
0
    private void CalulateScore()
    {
        int coins    = ChestController.ItemCount(ItemTag.Coin);
        int diamonds = ChestController.ItemCount(ItemTag.Diamond);
        int percentOfPickedPickUps = (int)((coins + diamonds) * 100 / pickUpsCount);

        score = (int)(breathingGasAmount + health) + percentOfPickedPickUps;
    }