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); }
private void CurrentProviderRequestAuth() { bool reset_auth = !(mCurrentProvider is DefaultAuthProvider) || string.IsNullOrEmpty(PlayerPrefs.GetString(SnipePrefs.AUTH_KEY)); mCurrentProvider.RequestAuth(OnCurrentProviderAuthResult, reset_auth); }