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

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

            damageCommand.Execute();
        }