void Start() { ReferenceManager.GetReferences(this); animator = GetComponentInChildren <Animator>(); ShowVisuals(false); boidAvoid = flock.AddAvoidPoint(transform, 0); }
public AvoidPoint AddAvoidPoint(Transform transform, float weight = 1) { AvoidPoint avoidPoint = new AvoidPoint(transform, weight); avoidPoints.Add(avoidPoint); return(avoidPoint); }