Ejemplo n.º 1
0
    void fireDirectHit()
    {
        // Reset the timer.
        //timer = 0f;

        // If the player has health to lose...
        if (playerShipStats.currentHullIntegrity > 0)
        {
            // ... damage the player.
            playerShipStats.TakeDamage(attackDamage);
        }
    }