public static void trigger_EnterArea(GEA eventArgs = null) { if (event_EnterArea != null) { event_EnterArea(eventArgs); } }
void GEM_Evt_EnterArea(GEA eventArgs) { Debug.Log("Got Event EnterArea " + eventArgs.area_name); foreach (req_t r in reqs) { if (eventArgs.area_name == r.area_name) { r.complete = true; reqs_needed--; if (reqs_needed == 0) { mission_complete(); } } } }