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

        if (!GlobalObject.IconoEnemigos)
        {
            IconoEnemigo.SetActive(false);
        }
    }
Beispiel #4
0
 // 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());
 }