コード例 #1
0
        protected void AuthorizeWithCurrentProvider(Action succeess_callback, Action fail_callback = null)
        {
            JustRegistered = false;

            mAuthSucceededCallback = succeess_callback;
            mAuthFailedCallback    = fail_callback;

            bool reset_auth = !(mCurrentProvider is DefaultAuthProvider) || string.IsNullOrEmpty(PlayerPrefs.GetString(SnipePrefs.AUTH_KEY));

            mCurrentProvider.RequestAuth(OnCurrentProviderAuthSuccess, OnCurrentProviderAuthFail, reset_auth);
        }
コード例 #2
0
        private void CurrentProviderRequestAuth()
        {
            bool reset_auth = !(mCurrentProvider is DefaultAuthProvider) || string.IsNullOrEmpty(PlayerPrefs.GetString(SnipePrefs.AUTH_KEY));

            mCurrentProvider.RequestAuth(OnCurrentProviderAuthResult, reset_auth);
        }