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