public void Display()
    {
        GUILayout.BeginVertical();

        GUILayout.Label("Detach Identity");

        GUILayout.BeginHorizontal();


        if (Util.Button("Universal #1"))
        {
            DetachIdentityDialog.DetachIdentityUniversal_1();
        }
        if (Util.Button("Universal #2"))
        {
            DetachIdentityDialog.DetachIdentityUniversal_2();
        }
        if (Util.Button("Email"))
        {
            DetachIdentityDialog.DetachIdentityEmail();
        }
        if (Util.Button("GooglePlay (Android Only)"))
        {
            DetachIdentityDialog.DetachIdentityGooglePlay();
        }

        GUILayout.EndHorizontal();

        GUILayout.EndVertical();
    }
예제 #2
0
    private void DoAuthWindow(int windowId)
    {
        GUILayout.BeginVertical();

        GUILayout.Label(string.Format("Removing this the identity {0} will make you anonymous. Are you sure?",
                                      ErrorHandlingApp.getInstance().m_user.m_userData.m_screenName));

        GUILayout.BeginHorizontal();

        if (Util.Button("Yes"))
        {
            switch (m_exampleAccountType)
            {
            case ExampleAccountType.Universal_1:
            {
                DetachIdentityDialog.DetachIdentityUniversal_1(true);

                break;
            }

            case ExampleAccountType.Universal_2:
            {
                DetachIdentityDialog.DetachIdentityUniversal_2(true);

                break;
            }

            case ExampleAccountType.Email:
            {
                DetachIdentityDialog.DetachIdentityEmail(true);

                break;
            }

            case ExampleAccountType.GooglePlay:
            {
                DetachIdentityDialog.DetachIdentityGooglePlay();

                break;
            }
            }

            Destroy(gameObject);
            return;
        }

        if (Util.Button("No"))
        {
            Destroy(gameObject);
        }

        GUILayout.EndHorizontal();

        GUILayout.EndVertical();
    }