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()); }
void Start() { agent = GetComponent <NavMeshAgent> (); animator = GetComponent <Animator> (); Player = GlobalObject.GetPlayer(); map = GlobalObject.GetMap(); if (!GlobalObject.IconoEnemigos) { IconoEnemigo.SetActive(false); } }
// Use this for initialization void Start() { agent = GetComponent <NavMeshAgent> (); agent.Warp(this.gameObject.transform.position); map = GlobalObject.GetMap(); Player = GlobalObject.GetPlayer(); animator = GetComponent <Animator> (); source = GetComponent <AudioSource> (); //int x = (int)Random.Range (0, map.terrainData.heightmapWidth); //int z = (int)Random.Range (0, map.terrainData.heightmapHeight); //destination = new Vector3 (x, map.terrainData.GetHeight(x,z), z); //StartCoroutine (walkingAnimal()); }