示例#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();
	}
示例#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();
    }
示例#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();
    }
示例#4
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();
	}