Created
April 17, 2020 14:31
-
-
Save leochocolat/8a86bc40ea45320de6e3ed1a8d0bc706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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