Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        helper = gameObject.AddComponent(typeof(FBhelper)) as FBhelper;

        // reference = FirebaseDatabase.DefaultInstance.RootReference;
        // // Set up the Editor before calling into the realtime database.
        // FirebaseApp.DefaultInstance.SetEditorDatabaseUrl("https://unity-firebase-test1-5fbe2.firebaseio.com/");

        // getSec(section);
        // Loop_getQn();
        // System.Threading.Thread.Sleep(3);
        // Get_Qn_Array();
        // Get_Ans_Array();
        // Get_Time_Array();

        i              = 0;
        quizStart      = false;
        Time.timeScale = 1.0f;
        inbetweenTime  = 5;
        timer.SetActive(false);
        ResetHall();
        portal.SetActive(false);
        portal.GetComponent <Collider2D>().enabled = false;
        if (!GetComponent <Collider2D>().isTrigger)
        {
            GetComponent <Collider2D>().enabled = false;
        }
        helper.getSec(section);
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     on_start.text = "welcome!";
     reference     = FirebaseDatabase.DefaultInstance.RootReference;
     // Set up the Editor before calling into the realtime database.
     FirebaseApp.DefaultInstance.SetEditorDatabaseUrl("https://unity-firebase-test1-5fbe2.firebaseio.com/");
     on_start.text = "line 26";
     // Get the root reference location of the database.
     on_start.text = "line 29";
     helper        = gameObject.AddComponent(typeof(FBhelper)) as FBhelper;
     helper_sec();
     helper_got_sec = true;
     Debug.Log("try to run helper loop START");
     while (helper_got_sec != true)
     {
         System.Threading.Thread.Sleep(1);
         continue;
     }
     if (helper_got_sec = true)
     {
         helper_loop();
         Debug.Log("try to run helper loop finish");
     }
 }