Example #1
0
 void Start()
 {
     jugadorRef     = GameObject.FindGameObjectWithTag("Jugador");
     efectoDeSonido = GetComponent <AudioSource>();
     arena          = GameObject.FindGameObjectWithTag("Arena");
     pasilloA       = GameObject.FindGameObjectWithTag("PasilloA");
     colliderRef    = GetComponent <BoxCollider>();
     drakan         = GameObject.FindGameObjectWithTag("Dragon").GetComponent <DrakanLogic>();
 }
Example #2
0
 void Start()
 {
     meshBarril     = gameObject.GetComponent <MeshRenderer>();
     colliderBarril = gameObject.GetComponent <BoxCollider>();
     noHayLanzas    = true;
     cant_lanza     = 5f;
     dragon         = GameObject.FindGameObjectWithTag("Dragon").GetComponent <DrakanLogic>();
     jugador        = GameObject.FindGameObjectWithTag("Jugador").GetComponent <JugadorLogic>();
 }
Example #3
0
 void Start()
 {
     camaraRef       = GameObject.FindGameObjectWithTag("MainCamera");
     ballesta        = GameObject.FindGameObjectWithTag("Ballesta");
     spawnLanzas     = GameObject.FindGameObjectWithTag("SpawnLanza");
     dragonRef       = GameObject.FindGameObjectWithTag("Dragon");
     gravedad        = -9.8f;
     fuerzaSalto     = 4;
     daƱoFuegoDragon = GameObject.FindGameObjectWithTag("Dragon").GetComponent <DrakanLogic>();
     jugador         = GetComponent <CharacterController>();
     camara          = FindObjectOfType <Camera>();
     anim            = GetComponent <Animator>();
 }