public PlayerLost(int finalScore, int collectedCoins, Enums.Enemy killedBy) { this.collectedCoins = collectedCoins; this.finalScore = finalScore; this.killedBy = killedBy; Events.instance.Raise(new GamePaused()); }
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)); }
public PlayerHit(int hpToLose, bool hitIsDodgeable, Enums.Enemy enemyType) { this.hpToLose = hpToLose; this.hitIsDodgeable = hitIsDodgeable; this.enemyType = enemyType; }