예제 #1
0
파일: Player.cs 프로젝트: mrtrvl/unity
    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;
    }