示例#1
0
 // Use this for initialization
 void Start()
 {
     bandera = FindObjectOfType <ControladorBandera>();
     //registro = FindObjectOfType<Registro>();
     //registro.ganan++;
     puntaje          = FindObjectOfType <ContadorPuntaje>();
     textpuntaje.text = "" + puntaje.puntaje + " ptos";
     audioFelicidades.Play();
 }
示例#2
0
    //public ContadorAlimentos ali;

    // Use this for initialization
    void Start()
    {
        bandera = FindObjectOfType <ControladorBandera>();
        puntaje = FindObjectOfType <ContadorPuntaje>();
        //audioFelicidades.Play();
        //textpuntaje.text = "" + puntaje.puntaje + " ptos";

        //ali = FindObjectOfType<ContadorAlimentos>();
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     //registro = FindObjectOfType<Registro>();
     //registro.pierden++;
     bandera          = FindObjectOfType <ControladorBandera>();
     puntaje          = FindObjectOfType <ContadorPuntaje>();
     textpuntaje.text = "" + puntaje.puntaje + " ptos";
     audioPerdistes.Play();
 }
示例#4
0
    //public ContadorAlimentos alimentos;

    // Use this for initialization
    void Start()
    {
        puntaje = FindObjectOfType <ContadorPuntaje>();
        bandera = FindObjectOfType <ControladorBandera>();
        //alimentos = FindObjectOfType<ContadorAlimentos>();
        puntaje.puntaje = 0;

        bandera.niv1 = false;
        bandera.niv2 = false;
        bandera.niv3 = false;
    }
示例#5
0
    // Use this for initialization
    void Start()
    {
        bandera = FindObjectOfType <ControladorBandera>();
        //registro = FindObjectOfType<Registro>();
        //alimentos = FindObjectOfType<ContadorAlimentos>();
        contP = FindObjectOfType <ContadorPuntaje>();

        if (SceneManager.GetSceneByName("Tutorial").isLoaded)
        {
            bandera.tempNombre = "Tutorial";
        }
        else if (SceneManager.GetSceneByName("Juego").isLoaded)
        {
            bandera.tempNombre = "Juego";
        }
        else if (SceneManager.GetSceneByName("Juego2").isLoaded)
        {
            bandera.tempNombre = "Juego2";
        }
    }
示例#6
0
 // Update is called once per frame
 void Update()
 {
     contP            = FindObjectOfType <ContadorPuntaje>();
     puntajeText.text = contP.puntaje + " pts";
 }