Esempio n. 1
0
 public PlayerLost(int finalScore, int collectedCoins, Enums.Enemy killedBy)
 {
     this.collectedCoins = collectedCoins;
     this.finalScore     = finalScore;
     this.killedBy       = killedBy;
     Events.instance.Raise(new GamePaused());
 }
Esempio n. 2
0
        private void GameOver(Enums.Enemy killedBy)
        {
            TempHealth            = 0;
            PlayerHealth          = 0;
            SavedData.TotalCoins += Coins;
            if (!_powerupActivatedThisRun && Score >= SavedData.BucketChivalryScoreToGet)
            {
                Achievements.BucketChivalry.Unlock();
            }

            Events.instance.Raise(new PlayerLost(Score, _coins, killedBy));
        }
Esempio n. 3
0
 public PlayerHit(int hpToLose, bool hitIsDodgeable, Enums.Enemy enemyType)
 {
     this.hpToLose       = hpToLose;
     this.hitIsDodgeable = hitIsDodgeable;
     this.enemyType      = enemyType;
 }