// Use this for initialization void Start() { S = this; for (int i = 0; i < numBoids; i++) { Instantiate(boidPrefab); } }
// Start is called before the first frame update void Start() { velocity = this.transform.forward * maxVelocity; boidSpawnerScript = GameObject.FindWithTag("boidSpawner").GetComponent <boidSpawner>(); }