public void RemoveResponseManager(SimvaResponseManager manager) { if (manager) { // If a delegate is not present the method gets ignored responseListeners -= manager.Notify; } }
// NOTIFIERS public void AddResponseManager(SimvaResponseManager manager) { if (manager) { // To make sure we only have one instance of a notify per manager // We first remove (as it is ignored if not present) responseListeners -= manager.Notify; // Then we add it responseListeners += manager.Notify; } }