private void Awake() { _GameHandlerAcomodarPIezas = FindObjectOfType <GameHandlerAcomodarPIezas>(); photonMostrar = GetComponent <PhotonView>(); musicaInicio = GameObject.Find("musicaInicio"); efectoBoton_3 = GameObject.Find("efectoBoton_3").GetComponent <AudioSource>(); }
public Button BotonPlay; //referencia al boton // private void OnEnable() // { // GestorDeRed.OnPlayersConnected += EnableMovement; // } // private void OnDisable() // { // GestorDeRed.OnPlayersConnected -= EnableMovement; // } // private void EnableMovement() // { // waitingForOtherPlayer = false; // } private void Awake() { _MoveAndRotateBoat = GetComponent <MoveAndRotateBoat>(); _BoxCollider = this.gameObject.GetComponents <BoxCollider>(); _GameHandlerAcomodarPIezas = FindObjectOfType <GameHandlerAcomodarPIezas>(); efectoBoton_2 = GameObject.Find("efectoBoton_2").GetComponent <AudioSource>(); PuertaSonido = GameObject.Find("PuertaSonido").GetComponent <AudioSource>(); }
public Button play;//referencia al boton private void Awake() { barcos = GameObject.FindGameObjectsWithTag("boat");//busca todos los barcos cuadriculas = GameObject.FindGameObjectsWithTag("cuadriculaColision"); _GameHandler = FindObjectOfType <GameHandlerAcomodarPIezas>(); efectoBoton_2 = GameObject.Find("efectoBoton_2").GetComponent <AudioSource>(); // listaDeNumeros = new int[cantidadNumerosAletorios]; }
private void Awake() { _GameHandlerAcomodarPIezas = FindObjectOfType <GameHandlerAcomodarPIezas>(); musicaInicio = GameObject.Find("musicaInicio"); efectoBoton_3 = GameObject.Find("efectoBoton_3").GetComponent <AudioSource>(); efectoBoton_2 = GameObject.Find("efectoBoton_2").GetComponent <AudioSource>(); _HandlerDificultadEntreNiveles = GameObject.Find("HandlerDificultadEntreNiveles");//para obtener la referencĂa al script _DatosGlobales = GameObject.Find("DatosGlobales"); }
private void Awake() { _Gamehandler = FindObjectOfType <GameHandlerAcomodarPIezas>(); }
private void Awake() { _GameHandlerAcomodarPIezas = FindObjectOfType <GameHandlerAcomodarPIezas>(); cuadriculas = GameObject.FindGameObjectsWithTag("cuadriculaColision"); }