SunsetHigh.KeyboardManager.handleShooting C# (CSharp) Method

handleShooting() public static method

Handles Hero's "weapon" ability; call this method in the Game's update cycle (AFTER calling KeyboardManager.update())
public static handleShooting ( Hero hero ) : void
hero Hero
return void
        public static void handleShooting(Hero hero)
        {
            if (KeyboardManager.isKeyPressed(keyTypes[(int)KeyInputType.Shoot]))
            {
                hero.shoot();
            }
        }