Esempio n. 1
0
	// Use this for initialization
	void Start () {
		yakRunAway = new YakRunAway(this, runAwayStepSize);
		yakFollowHerd = new YakFollowHerd(this); 
		yakChaseHerd = new YakChaseHerd(this); 

		agent = GetComponent<NavMeshAgent>();
		this.setFollowHerd();
	}
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        yakRunAway    = new YakRunAway(this, runAwayStepSize);
        yakFollowHerd = new YakFollowHerd(this);
        yakChaseHerd  = new YakChaseHerd(this);

        agent = GetComponent <NavMeshAgent>();
        this.setFollowHerd();
    }