Пример #1
0
	private IEnumerator OnMovingToOutpost () {
		agent.SetDestination (currentOutpost.transform.position);

		while (!(currentOutpost.team == team && currentOutpost.currentValue == 1)) {
			LookForEnemies();
			yield return null;
		}

		currentOutpost = null;
		SetState (State.Idle);
	}
Пример #2
0
 void OnOutpostFound(Outpost targetOutpost)
 {
 }
Пример #3
0
	private void LookForOutposts () {
		int r = Random.Range (0, GameManager.instance.outposts.Length);
		currentOutpost = GameManager.instance.outposts [r];
	}