예제 #1
0
    void SpawnSalvo()
    {
        for (int i = 0; i < nextSalvoAmount; i += 1)
        {
            SpawnMeteor();
        }
        nextSalvoAmount  = Random.Range(nextSalvoAmount, nextSalvoAmount + 2);
        nextSalvoTime    = Time.time + Random.Range(20.0f, 40.0f);
        salvosRemaining -= 1;

        if (salvosRemaining == 2)
        {
            shipRotator.AddRandomSpin();
        }
    }