/// <summary> /// Registers a callback for when a Token has changed. /// </summary> public static void RegisterCallback(GameTokenCallback callback) { if (!callbacks.Contains(callback)) { callbacks.Add(callback); } }
/// <summary> /// Removes a callback if it has been registered. /// </summary> /// <param name="callback"></param> public static void UnregisterCallback(GameTokenCallback callback) { if (callbacks.Contains(callback)) { callbacks.Remove(callback); } }