示例#1
0
 void Start()
 {
     agent    = GetComponent <NavMeshAgent> ();
     animator = GetComponent <Animator> ();
     map      = GlobalObject.GetMap();
     mapGO    = GlobalObject.GetGameObjectMap();
 }
示例#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());
 }