예제 #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());
    }