Example #1
0
    ///<summary>Prøver at skyde vores kanoner</summary>
    public void ShootCannon()
    {
        if (nextFireReady <= 0.0f)
        {
            nextFireReady = parentShip.GetCannonNextFire();

            parentShip.GetGameManager().SpawnCannonBalls(parentShip, firePoint.transform.position, firePoint.transform.rotation, true);
        }
    }