Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     _firebaseSetup = new FirebaseSetup();
     highScore      = PlayerPrefs.GetFloat("HighScore");
     health         = 3;
     Debug.Log("gm" + health);
 }
Example #2
0
 public void StartScoreboard()
 {
     players        = new List <User>();
     _firebaseSetup = new FirebaseSetup();
     loader.SetActive(true);
     isReady = false;
     Debug.Log("start v scoreboarde");
     scoreBoardObject.SetActive(false);
     StartCoroutine(GetAllPlayersFromDatabase());
 }
Example #3
0
 void Start()
 {
     if (PlayerPrefs.GetString("Username") != (""))
     {
         GoToMainMenuScene();
     }
     else
     {
         button.SetActive(true);
         usernameInput.gameObject.SetActive(true);
         players        = new List <string>();
         _firebaseSetup = new FirebaseSetup();
         StartCoroutine(GetAllPlayersFromDatabase());
     }
 }