/// <summary> /// React to clicks in the map by notifying the model /// </summary> public virtual void InteractionWithMap(MEventSystem evtSystem, MInteractionType interactionType, BaseEventData e) { evtSystem.OnInteractionEvent(interactionType, e); }
public void OnInteractionEvent(MInteractionType interactionType, BaseEventData e) { foreach (MInteractionEvent handler in registeredHandlers) { if (handler.mapInteractionType == interactionType && handler.methodName != string.Empty) { handler.target.GetType().GetMethod(handler.methodName).Invoke(handler.target, new System.Object[] { e }); } } }