Exemplo n.º 1
0
	public YakFollowHerd(AIYak yak) {
		this.yak = yak;
	}
Exemplo n.º 2
0
 public YakChaseHerd(AIYak yak)
 {
     this.yak = yak;
 }
Exemplo n.º 3
0
	public YakChaseHerd(AIYak yak) {
		this.yak = yak;
	}
Exemplo n.º 4
0
	/// <summary>
	/// Gets a point relative to the index of the yak
	/// </summary>
	public Vector3 getFollowPoint(AIYak yak) {
		float yakSpacing = this.herdWidth / yaks.Length;
		int yakIndex = System.Array.IndexOf(yaks, yak);
		float zOffset = -(this.herdWidth / 2f) + (yakIndex * yakSpacing);
		return new Vector3(transform.position.x, transform.position.y + zOffset, transform.position.z);
	}
Exemplo n.º 5
0
 public YakFollowHerd(AIYak yak)
 {
     this.yak = yak;
 }