Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (gm == null)
        {
            gm = this;
        }



        putValues      = GameObject.FindObjectOfType <PutValuesFL>();
        jugador        = GameObject.FindObjectOfType <PlayerFL>();
        resultados     = FindObjectOfType <PutDataResults>();
        animationFinal = FindObjectOfType <finalAnimationFL>();
        panelResultados.SetActive(false);

        tutorial_pages_array = new List <GameObject>();
        int contador = 0;

        do
        {
            contador++;
            tutorial_page_info = GameObject.Find("tutorial_page" + contador);
            if (tutorial_page_info != null)
            {
                tutorial_pages_array.Add(tutorial_page_info);
                tutorial_page_info.SetActive(false);
            }
        } while (tutorial_page_info != null);
        hasStart  = false;
        game_over = false;
        panelTutorial.SetActive(false);
        random = new System.Random();
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     //puede_patear = true;
     puede_patear_der = false;
     puede_patear_izq = false;
     connectWithSensor();
     controlPelota = GameObject.FindObjectOfType <ControllerBall>();
     manager       = GameObject.FindObjectOfType <ManagerFL> ();
 }
Exemplo n.º 3
0
 void Start()
 {
     manager = GameObject.FindObjectOfType <ManagerFL> ();
 }