private void RaiseSelectionEvent(ISelection selection) { CardSelectionData cardSelection = new CardSelectionData(_baseData); cardSelection.type = selection.Type; cardSelection.selected = selection.Selected; CardSelectionEvent.Invoke(cardSelection); selection.GetEmitter <AEventData>()?.Emit(cardSelection); }
private void RaiseSelectionEvent(ISelection selection) { var roomSelection = baseData == null ? new RoomSelectionData() : new RoomSelectionData(baseData); roomSelection.type = selection.Type; roomSelection.selected = selection.Selected; RoomSelectionEvent.Invoke(roomSelection); selection.GetEmitter <AEventData>()?.Emit(roomSelection); // selection.GetComponent<IEventEmitter>().Emit<RoomSelectionData>(roomSelection); }