コード例 #1
0
    public void OnExitButtonClicked()
    {
        //disconnect from Photon
        PhotonFunctions.DisconnectFromPhoton();

        ExitButtonOptions.SetActive(true);
    }
コード例 #2
0
    public void OnDeleteAccountButtonClicked()
    {
        //disconnect from Photon
        PhotonFunctions.DisconnectFromPhoton();

        File.Delete(path);
        userProfileButton.SetActive(false);
        TitleText.text = "Welcome!";
        userProfile.SetActive(false);
    }
コード例 #3
0
    public void OnSignOutButtonClicked()
    {
        //disconnect from Photon
        PhotonFunctions.DisconnectFromPhoton();

        userProfileButton.SetActive(false);
        TitleText.text = "Welcome!";
        userProfile.SetActive(false);

        userJSON["IsLoggedIn"] = false;
        File.WriteAllText(path, userJSON.ToString());
    }