public KillRecievedArgs(Enemy.Classes enemy, int score, int money, float enemyHealthMax) { this.enemy = enemy; this.score = score; this.money = money; this.enemyHealthMax = enemyHealthMax; }
/// <summary> /// Recieve kill information from killed enemy. /// </summary> /// <param name="enemy">Enemy type killed.</param> /// <param name="points">How many base points the enemy is worth.</param> /// <param name="money">How much money the enemy is worth.</param> /// <param name="enemyHealthMax"></param> public void RecieveKill(Enemy.Classes enemy, int points, int money, float enemyHealthMax) { myScore.RecieveScore(points); myScore.IncreaseMultiplier(); myMoney.Collect(money); KillRecievedEvent.Fire(this, new KillRecievedArgs(enemy, points, money, enemyHealthMax)); }