Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- public GameObject[] EnemyList;
- function Update () {
- int index = Random.Range (0, EnemyList.Lenght-1);//faz o sorteio de Enemy de indice index
- nav.SetDestination (EnemyList[index].position);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement