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();
    }
Exemple #3
0
    // Use this for initialization
    void Start()
    {
        cachedRigidBody = GetComponent <Rigidbody>();
        yakAliveSound   = FMODUnity.RuntimeManager.CreateInstance(yakAliveEvent);

        yakAliveSound.setParameterValue("Distance", 0.0f);
        yakAliveSound.start();

        yakDeathSound = FMODUnity.RuntimeManager.CreateInstance(yakDeathEvent);

        yakRunAway         = new YakRunAway(this, runAwayStepSize);
        yakFollowWaypoints = new YakFollowWaypoints(this);

        agent = GetComponent <NavMeshAgent>();
        this.setFollowWaypoints();
    }
	// Use this for initialization
	void Start () {

		cachedRigidBody = GetComponent<Rigidbody>();
		yakAliveSound = FMODUnity.RuntimeManager.CreateInstance(yakAliveEvent);

		yakAliveSound.setParameterValue("Distance", 0.0f);
		yakAliveSound.start();

		yakDeathSound = FMODUnity.RuntimeManager.CreateInstance(yakDeathEvent);

		yakRunAway = new YakRunAway(this, runAwayStepSize);
		yakFollowWaypoints = new YakFollowWaypoints(this);

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