Example #1
0
        public void TakeDamage(int damage)
        {
            ZeldaSound.Instance.TakeDamage();
            ICommand damageCommand = new TakeDamageCommand(game, this, damage);

            damageCommand.Execute();
        }
Example #2
0
        public void TakeDamage(int damage)
        {
            ICommand damageCommand = new TakeDamageCommand(this, damage);

            damageCommand.Execute();
        }