Пример #1
0
    private void CheckForLoggedInUser()
    {
        var storedInfo = GoogleDriveSettings.LoadFromResources();

        if (storedInfo.CachedAccessToken == "")
        {
            _driveInfo.text = "no Google Drive connected.";
        }
        else
        {
            _driveInfo.text = "Google Drive connected.";
        }
    }
Пример #2
0
 protected override void Awake()
 {
     base.Awake();
     settings = GoogleDriveSettings.LoadFromResources();
 }
Пример #3
0
    public void LogoutUser()
    {
        var storedInfo = GoogleDriveSettings.LoadFromResources();

        storedInfo.DeleteCachedAuthTokens();
    }