public void RemoveTrophy()
        {
            Debug.Log("Remove Trophy. Click to see source.");

            var trophyId = TrophyIdField.text != string.Empty ? int.Parse(TrophyIdField.text) : 0;

            Trophies.Remove(trophyId, success => {
                AddConsoleLine("Remove Trophy {0}.", success ? "Successful" : "Failed");
            });
        }
Beispiel #2
0
 /// <summary>
 /// Locks the <see cref="Trophy"/> again.
 /// </summary>
 /// <param name="callback">A callback function accepting a single parameter, a boolean indicating success.</param>
 public void Remove(Action <bool> callback = null)
 {
     Trophies.Remove(this, success => {
         if (success)
         {
             Unlocked = false;
         }
         if (callback != null)
         {
             callback(success);
         }
     });
 }