Esempio n. 1
0
 void SubmitScore()
 {
     Debug.Log("toggling submit");
     Leaderboard.AddToLeaderboard(GameMaster.enemiesKilled, usernameInput.text);
     GameMaster.playerName = usernameInput.text;
     submit.interactable   = false;
     submit.GetComponentsInChildren <Text>()[0].text = "Saved!";
 }
 /// <summary>
 /// Tests adding to the leaderboard
 /// </summary>
 void TestAdd()
 {
     Leaderboard.AddToLeaderboard((int)Random.Range(0.0f, 100.0f), "Username" + leaderboard.Count.ToString());
 }