Beispiel #1
0
    public void GenerateRandomStrip(int posSpawn)
    {
        int ric = (int)Random.Range(0, 2);

        velocities[posSpawn] = Random.Range(5, 10);

        if (ric == 1)
        {
            strip.CreateBlueStrip(Random.Range(3, 8), posSpawn, spawns[posSpawn]);
        }
        else
        {
            strip.CreateRedStrip(Random.Range(3, 8), posSpawn, spawns[posSpawn]);
        }
    }