public void WaveSpawn() { int count = (alternate ? 4 : 3) + nextDeadTent; for (int x = 0; x < count; x++) { float angle = ((float)x) / count; BulletPool obj = BulletPool.GetObject(); obj.spawnTime = lastSpawn; obj.parentAgeAtBirth = lastSpawn; obj.splitTime = 1000f; obj.scheduledDeathTime = 100; obj.dir = new Vector3( -Mathf.Sin(angle * 3.141529f), -Mathf.Cos(angle * 3.141529f), 0) * 2; obj.curve = Vector3.zero; obj.Init(evaluable); } }
private void Start() { pool.Init(); bpool.Init(); }
void Start() { Instance = this; BulletPool.Init(); }