// Use this for initialization void Start() { rb = GetComponent <Rigidbody>(); settings = GetComponent <AgentsSettings>(); flocking = new Flock(this); bdi = new BDI(this); }
// Use this for initialization void Start() { isLit = false; agentManager = GetComponentInParent <AgentsPositionManager>(); if (agentManager == null) { Debug.Log("Unable to find 'AgentPositionManager'"); } rb = GetComponent <Rigidbody>(); settings = GetComponent <AgentsSettings>(); flocking = new Flock(this); bdi = new BDI(this); }