Пример #1
0
 public static bool OpenPublishDialog(OKRequestCallback callback, OKMedia media)
 {
     return(OpenPublishDialog(callback, null, new List <OKMedia>()
     {
         media
     }));
 }
Пример #2
0
    public void Share()
    {
        string description = string.Format("WOW! I reached level {0}!", level);

        if (OK.IsLoggedIn)
        {
            //OK.OpenPhotoDialog(uploadResponse => {
            Debug.Log("Photo uploaded!");
            OK.OpenPublishDialog(PublishCallback, new List <OKMedia>()
            {
                OKMedia.Photo(texture),
                OKMedia.Text(description)
            });

/*
 *      }, () => {
 *                              OK.OpenPublishDialog(PublishCallback, new List<OKMedia>()
 *                              {
 *                                      OKMedia.Photo(texture),
 *                                      OKMedia.Text(description)
 *                              });
 *                      },
 *                      texture, description);
 */
        }
        Close();
    }
Пример #3
0
 private void Share(string text, string link, string title, Texture2D image)
 {
     OK.OpenPublishDialog(
         response =>
     {
         if (response != null && response.Object != null && response.Object.ContainsKey("error_code"))
         {
         }
         else if (response != null)
         {
             AchievementsManager.Instance.CheckAchievements(TasksTypes.Share);
         }
     },
         new List <OKMedia>()
     {
         OKMedia.Text(text),
         OKMedia.Photo(image),
         OKMedia.Link(link)
     });
 }
Пример #4
0
 public static bool OpenPublishDialog(OKRequestCallback callback, Action onClosed, OKMedia media)
 {
     return(OpenPublishDialog(callback, onClosed, new List <OKMedia>()
     {
         media
     }));
 }
Пример #5
0
 public static bool OpenPublishDialog(OKRequestCallback callback, Action onClosed, OKMedia media)
 {
     return OpenPublishDialog(callback, onClosed, new List<OKMedia>() { media });
 }
Пример #6
0
 public static bool OpenPublishDialog(OKRequestCallback callback, OKMedia media)
 {
     return OpenPublishDialog(callback, null, new List<OKMedia>() { media });
 }