Exemple #1
0
    void Start()
    {
        soundtrack     = this.gameObject.GetComponent <AudioSource>();
        Time.timeScale = 0;
        OnlineInitializer.OnlinePlayers = OnlineInitializer.OnlinePlayers + 1;

        if (OnlineInitializer.OnlinePlayers <= 2)
        {
            imking = true;
        }

        Debug.Log("" + OnlineInitializer.OnlinePlayers);
        localWinner = false;
        if (isLocalPlayer)
        {
            GetComponent <LogicaOnline>().enabled = true;
            this.transform.gameObject.SetActive(true);
            this.transform.gameObject.tag = "Cliente";
        }
        else
        {
            GetComponent <LogicaOnline>().enabled = false;
            this.transform.gameObject.SetActive(false);
            this.transform.gameObject.tag = "Server";
        }
        ListaNumeros = engine.CreateRandomList(valorMin, valorMax, RevisarEscena.FocosParaNivel);
    }
 void Start()
 {
     Time.timeScale           = 1;
     ListaNumeros             = engine.CreateRandomList(valorMin, valorMax, RevisarEscena.FocosParaNivel);
     MiHighScoreParaEsteNivel = PlayerPrefs.GetFloat(Nombre_Del_Player_Prefs_De_Este_Nivel, _obtenerHighScore.ObtenerHighScoreDeEsteNivel(NumeroEscenaActual));
     Nombre_Del_Player_Prefs_De_Este_Nivel = _obtenerNivel.RegresarNombreDelNivel(NumeroEscenaActual);
     Debug.Log(PlayerPrefs.GetFloat(Nombre_Del_Player_Prefs_De_Este_Nivel));/// HIGH SCORE ACTUAL
     Debug.Log(Nombre_Del_Player_Prefs_De_Este_Nivel);
 }
Exemple #3
0
    public void GenerarNumerosUT()
    {
        //Arrange
        var engine = new GenerarNumeros();
        //Act
        var result = engine.CreateRandomList(1, 7, 5);

        //Assert
        Assert.IsNotNull(result);

        Assert.AreEqual(5, result.Count);

        for (int i = 0; i < result.Count; i++)
        {
            Assert.IsTrue(result[i] >= 1 && result[i] < 7);
        }
    }
Exemple #4
0
 void Start()
 {
     ListaNumeros = engine.CreateRandomList(valorMin, valorMax, RevisarEscena.FocosParaNivel);     //ELIMINR EL +1 CUANDO ACOMODEN LAS ESCENAS
 }
 void Start()
 {
     Time.timeScale = 1;
     ListaNumeros   = engine.CreateRandomList(valorMin, valorMax, RevisarEscena.FocosParaNivel);
 }