Example #1
0
 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>();
    }
Example #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];
    }
Example #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");
 }
Example #5
0
 private void Awake()
 {
     _Gamehandler = FindObjectOfType <GameHandlerAcomodarPIezas>();
 }
Example #6
0
 private void Awake()
 {
     _GameHandlerAcomodarPIezas = FindObjectOfType <GameHandlerAcomodarPIezas>();
     cuadriculas = GameObject.FindGameObjectsWithTag("cuadriculaColision");
 }