public void RaiseEvent(RoomSelectionData selectionData) { Debug.Log("here we are - room selection"); if (RoomSelectionEvent != null) { Debug.Log("we are also here"); RoomSelectionEvent.Invoke(selectionData); } }
public RoomSelectionData(RoomSelectionData sel) { if (sel == null) { return; } type = sel.type; department = sel.department; selected = sel.selected; }
private void OnSelection(RoomSelectionData selectionData) { if (IsDataCorrect(selectionData)) { if ((selectionData.selected && !ignoreSelect) || (!selectionData.selected && !ignoreDeselect)) { onRoomSelection.Invoke(selectionData); } else { Debug.Log("ignore"); } } else { onDifferentEvent.Invoke(); } }
public void SetDataForDepartment(RoomSelectionData roomData) { Department = roomData.department; }
private bool IsDataCorrect(RoomSelectionData selectionData) { return(selectionData.type == selectionType); }
public void AssignBaseData(RoomSelectionData selData) { Init(); baseData = new RoomSelectionData(selData); }