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