/// <summary>
	/// Show some love to the user.
	/// </summary>
	public void ShowGreetingNotification ()
	{
		if (GJAPI.User == null)
		{
			Debug.LogWarning ("GJAPIHelper: There is no verified user to show greetings to ;-(");
			return;
		}
		
		GJHNotification notification = new GJHNotification (string.Format ("Welcome back {0}!", GJAPI.User.Name));
		GJHNotificationsManager.QueueNotification (notification);
	}
Esempio n. 2
0
    /// <summary>
    /// OnGetTrophy callback.
    /// </summary>
    /// <param name='trophy'>
    /// The trophy.
    /// </param>
    void OnGetTrophy(GJTrophy trophy)
    {
        GJAPI.Trophies.GetOneCallback -= OnGetTrophy;

        if (trophy != null)
        {
            DownloadTrophyIcon(trophy, tex =>
            {
                GJHNotification nofitication = new GJHNotification(trophy.Title, trophy.Description, tex);
                GJHNotificationsManager.QueueNotification(nofitication);
            });
        }
    }
Esempio n. 3
0
 /// <summary>
 /// Releases unmanaged resources and performs other cleanup operations before the application quit.
 /// </summary>
 void OnApplicationQuit()
 {
     queue = null;
     currentNotification = null;
     instance = null;
 }
Esempio n. 4
0
 /// <summary>
 /// Releases unmanaged resources and performs other cleanup operations before the application quit.
 /// </summary>
 void OnApplicationQuit()
 {
     queue = null;
     currentNotification = null;
     instance            = null;
 }
 /// <summary>
 /// Releases unmanaged resources and performs other cleanup operations before the application quit.
 /// </summary>
 void OnDestroy()
 {
     queue = null;
     currentNotification = null;
     instance            = null;
 }