Exemple #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();
	}
Exemple #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();
    }