public GameObject CreateBoid(Vector3 position, GameObject prefab) { GameObject boid; boid = (GameObject)SteeringManager.Instantiate(prefab); boid.tag = "boid"; boid.AddComponent <SteeringBehaviours>(); boid.transform.position = position; return(boid); }