Пример #1
0
 // Use this for initialization
 void Start()
 {
     rb       = GetComponent <Rigidbody>();
     settings = GetComponent <AgentsSettings>();
     flocking = new Flock(this);
     bdi      = new BDI(this);
 }
Пример #2
0
 // 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);
 }