public void Unfocus() { if (selectedTimestamp == NO_TIMESTAMP) { return; } selectedTimestamp = NO_TIMESTAMP; OnDeselectMap?.Invoke(mapId); GetComponentInChildren <DifficultyContainer>().OnMapDeselect(mapId); GetComponentInChildren <Text>().color = Color.black; base.OnDeselect(null); }
private void Button_OnClick() { if (Time.time - selectedTimestamp < requiredTimeBeforeNextSelected) { return; } if (currentSelectionState == SelectionState.Selected) { OnDeselectMap?.Invoke(mapId); return; } else { OnSelectMap?.Invoke(mapId); } }