daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Sep 23rd, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     public GameObject[] EnemyList;
  3.  
  4. function Update () {
  5.  
  6. int index = Random.Range (0, EnemyList.Lenght-1);//faz o sorteio de Enemy de indice index
  7.            
  8. nav.SetDestination (EnemyList[index].position);
  9.  
  10. }
  11.  
  12.  
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top