示例#1
0
	// The initialization.
	void Start() {

		// Get the pheromones folder.
		pheromones = GameObject.Find ("Pheromones");

		// Get general information.
		setup = GameObject.FindGameObjectWithTag ("Setup").GetComponent<Setup> ();
		
		// Get the agentBehavior script.
		antBehavior = this.transform.parent.GetComponent<AntBehavior> ();
	}
示例#2
0
    // The initialization.
    void Start()
    {
        // Get the pheromones folder.
        pheromones = GameObject.Find("Pheromones");

        // Get general information.
        setup = GameObject.FindGameObjectWithTag("Setup").GetComponent <Setup> ();

        // Get the agentBehavior script.
        antBehavior = this.transform.parent.GetComponent <AntBehavior> ();
    }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     beingApproachedBy = null;
     beingCarriedBy    = null;
     isStored          = false;
 }