コード例 #1
0
 public KillRecievedArgs(Enemy.Classes enemy, int score, int money, float enemyHealthMax)
 {
     this.enemy = enemy;
     this.score = score;
     this.money = money;
     this.enemyHealthMax = enemyHealthMax;
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: syeager/Space-CUBEs
        /// <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));
        }