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>(); }
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>(); }
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>(); }