Skip to content

Instantly share code, notes, and snippets.

@leochocolat
Created April 17, 2020 14:31
Show Gist options
  • Save leochocolat/8a86bc40ea45320de6e3ed1a8d0bc706 to your computer and use it in GitHub Desktop.
Save leochocolat/8a86bc40ea45320de6e3ed1a8d0bc706 to your computer and use it in GitHub Desktop.
Flock agentFlock;
public Flock AgentFlock { get { return agentFlock; } }
//maybe dont use colliders for performances issues
//Collider agentCollider;
//public Collider AgentCollider { get { return agentCollider; } }
Vector3 agentPosition;
public Vector3 AgentPosition { get { return agentPosition; } }
Transform agentTransform;
public Transform AgentTransform { get { return agentTransform; } }
void Start()
{
agentTransform = transform;
agentPosition = transform.position;
//agentCollider = GetComponent<Collider>();
}
public void Initialize(Flock flock)
{
agentFlock = flock;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment