public void StartAuthentication(bhClowdDriveAPI.Authentication_Callback callback) { /* * Autentciation checking * If _initInProgress == false, this means drive need autentication * and _initInProgress == true, this means drive doesn't need autentication process */ Initialize(); _authen_callback = callback; if (_initInProgress == false) { _isAuthenticationDone = false; StartCoroutine(StartAuthentication_internal(delegate(bool res, int resCode) { _isAuthenticationDone = true; _AuthenticationResCode = resCode; if (res) { _isAuthenticationSucceed = true; } else { _isAuthenticationSucceed = false; } }, 0)); } }
public void StartAuthentication(bhClowdDriveAPI.Authentication_Callback callback) { if (_type == eCloudType.NotSelected) { return; } switch (_type) { case eCloudType.bCloudDrive: { _bDriveAPI.StartAuthentication(callback); } break; case eCloudType.GoogleDrive: { _bGoogleAPI.StartAuthentication(callback); } break; } }
public void StartAuthentication(bhClowdDriveAPI.Authentication_Callback callback){ /* * Autentciation checking * If _initInProgress == false, this means drive need autentication * and _initInProgress == true, this means drive doesn't need autentication process */ Initialize(); _authen_callback = callback; if (_initInProgress == false) { _isAuthenticationDone = false; StartCoroutine (StartAuthentication_internal (delegate(bool res, int resCode) { _isAuthenticationDone = true; _AuthenticationResCode = resCode; if(res) _isAuthenticationSucceed = true; else _isAuthenticationSucceed = false; },0)); } }