Example #1
0
    private void Awake()
    {
        jugador = GameObject.FindGameObjectWithTag("Player").transform;
        IA      = GetComponent <NavMeshAgent>();

        jugadorvida = jugador.GetComponent <JugadorVida>();
        enemigovida = GetComponent <EnemigoVida>();
    }
Example #2
0
 void Awake()
 {
     animaciones = GetComponent <Animator>();
     jugador     = GameObject.FindGameObjectWithTag("Player");
     jugadorVida = jugador.GetComponent <JugadorVida>();
 }