示例#1
0
    // Called on initialisation
    public void Start()
    {
        alm = (AutoLobbyManager)NetworkManager.singleton;

        // Remove score data if it is 0
        if (PlayerPrefs.HasKey("score"))
        {
            if (PlayerPrefs.GetInt("score") == 0)
            {
                PlayerPrefs.DeleteKey("score");
            }
        }

        // Display upload button if there is a score from last game
        uploadButton.SetActive(PlayerPrefs.HasKey("score"));
    }
示例#2
0
 // Called on initialisation
 private void Start()
 {
     alm = (AutoLobbyManager)UnityEngine.Networking.NetworkManager.singleton;
 }