// Start is called before the first frame update void Start() { _firebaseSetup = new FirebaseSetup(); highScore = PlayerPrefs.GetFloat("HighScore"); health = 3; Debug.Log("gm" + health); }
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()); }
void Start() { if (PlayerPrefs.GetString("Username") != ("")) { GoToMainMenuScene(); } else { button.SetActive(true); usernameInput.gameObject.SetActive(true); players = new List <string>(); _firebaseSetup = new FirebaseSetup(); StartCoroutine(GetAllPlayersFromDatabase()); } }