public void Start()
    {
        LBH = GameObject.FindGameObjectWithTag("Player").GetComponent <LeaderBoardHandler>();
        LBH.StopTime();
        GameObject.FindGameObjectWithTag("GameController").GetComponentInChildren <Text>().text = LBH.GetCurrentTime();

        LevelManager.reading_input = false;
    }
Exemple #2
0
 void FixedUpdate()
 {
     Debug.Log(testable.GetCurrentTime());
     if (limit == i)
     {
         // Przykładowy call do wysłania wyniku
         // Na koniec zatrzymaj czas
         testable.StopTime();
         // poproś gracza o nick, wyślij czas
         Debug.Log(testable.UploadTime_and_get_place(username));
         i++;
     }
     else
     {
         i++;
     }
 }