Exemple #1
0
 public static BulletSpawnDefinition InterlievedFan(float speed, int volleyCount, float spawnPeriod, int bulletsPerVolley)
 {
     return(new FanSpawn(
                SpawnPattern.InterleavedFan(
                    15,
                    bulletsPerVolley,
                    spawnPeriod / 2f,
                    SpawnPattern.Single(speed)),
                volleyCount,
                1f,
                spawnPeriod,
                center: false));
 }
    // Start is called before the first frame update
    void Start()
    {
        var pattern = new RepeatSpawn(SpawnPattern.InterleavedFan(15, 7, 0.5f, SpawnPattern.Single(2f)), 5, 1f);

        DropInOut.Create(dropInOutPrefab, transform.position, transform.position + Vector3.down * 10f, transform.position, 10, pattern, transform.position + Vector3.down * 15f);
    }