Exemplo n.º 1
0
 private void Awake()
 {
     _GameHandlerAcomodarPIezas = FindObjectOfType <GameHandlerAcomodarPIezas>();
     photonMostrar = GetComponent <PhotonView>();
     musicaInicio  = GameObject.Find("musicaInicio");
     efectoBoton_3 = GameObject.Find("efectoBoton_3").GetComponent <AudioSource>();
 }
Exemplo n.º 2
0
    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>();
    }
Exemplo n.º 3
0
    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];
    }
Exemplo n.º 4
0
 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");
 }
Exemplo n.º 5
0
 private void Awake()
 {
     _Gamehandler = FindObjectOfType <GameHandlerAcomodarPIezas>();
 }
Exemplo n.º 6
0
 private void Awake()
 {
     _GameHandlerAcomodarPIezas = FindObjectOfType <GameHandlerAcomodarPIezas>();
     cuadriculas = GameObject.FindGameObjectsWithTag("cuadriculaColision");
 }