Esempio n. 1
0
 void Start()
 {
     agent    = GetComponent <NavMeshAgent> ();
     animator = GetComponent <Animator> ();
     map      = GlobalObject.GetMap();
     mapGO    = GlobalObject.GetGameObjectMap();
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     agent = GetComponent <NavMeshAgent> ();
     agent.Warp(this.gameObject.transform.position);
     map  = GlobalObject.GetMap();
     mapa = GlobalObject.GetGameObjectMap();
     StartCoroutine(walkingAnimal());
 }