예제 #1
0
    // Use this for initialization
    void Start()
    {
        S = this;

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