void Start() { r = GetComponent <Rigidbody> (); cam = Camera.main; r.maxAngularVelocity = 8; r.maxDepenetrationVelocity = 8; if (isLocalPlayer) { Renderer rend = transform.GetChild(0).GetChild(0).GetComponent <Renderer>(); rend.material = bichoMulti; rend = transform.GetChild(0).GetChild(1).GetComponent <Renderer>(); rend.material = bichoMulti; } sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>(); sonidos.ReproducirSonidoSpawn(); planeta = GameObject.Find("planeta").transform; #if UNITY_IPHONE || UNITY_ANDROID || UNITY_WEBGL joystickMovimiento = GameObject.Find("FondoJoystickMovimiento").GetComponent <VirtualJoystick>(); #endif }
// Use this for initialization void Start() { roullete = GameObject.Find("Roullete"); roulleteP = roullete.GetComponent <RoulletePos> (); roulleteL = GameObject.Find("RuletaNiveles"); roulletePL = roulleteL.GetComponent <RoulletePos> (); cMl_Script = GameObject.Find("CM_level").GetComponent <CMl_Script>(); sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>(); }
void Awake() { // Registramos el singleton if (Instancia != null) { Debug.LogError("Muchas instancias de ReproducirSonidos!"); } Instancia = this; }
// Use this for initialization void Start() { texto = GetComponent <Text>(); ReproductorSonidos reproductor = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>(); if (reproductor.GetGanador() == 0 || reproductor.GetGanador() == -1) { texto.text = "Looser marica"; } }
// Use this for initialization void Awake() { posInicial = transform.position; pivot = GameObject.Find("pivot camara"); posInicialCamara = pivot.transform.position; posInicialRotation = pivot.transform.rotation; RenderVidas = GameObject.Find("ControlDeVidas"); sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>(); }
// Use this for initialization void Awake() { manager = GameObject.Find("LobbyManager").GetComponent <NetworkLobbyManager>(); puntas = new PuntasEstrella(); posInicial = transform.position; pivot = GameObject.Find("pivot camara"); posInicialCamara = pivot.transform.position; posInicialRotation = pivot.transform.rotation; sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>(); }
void Awake() { r = GetComponent <Rigidbody> (); cam = Camera.main; r.maxAngularVelocity = 8; r.maxDepenetrationVelocity = 8; sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>(); if (planeta == null) { planeta = GameObject.Find("planeta").transform; } }
// Use this for initialization void Start() { sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>(); }