public void OnSelectUnit(Event e) { SelectUnitEvent args = (SelectUnitEvent)e; unit = args.SelectedUnit; if (unit == null) { Hide(); } else { BuildComponents(); InitialiseComponents(); Show(); } }
/// <summary> /// The handler for a select unit event. /// </summary> public void OnSelectUnit(Event e) { SelectUnitEvent args = (SelectUnitEvent)e; SelectedUnit = args.SelectedUnit; }
public Int32 SelectUnit(Int64 GUID) => SelectUnitEvent?.Invoke(GUID) ?? 0;