Exemplo n.º 1
0
    public bool Shoot()
    {
        // If the cooldown is elapsed and the player has enough energy
        if (m_shootController.CanShoot(m_energy.GetValue()))
        {
            m_energy.Subtract(m_shootController.Cost);
            m_shootController.Fire();
            return(true);
        }

        return(false);
    }