예제 #1
0
        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);
        }
예제 #2
0
        private void Button_OnClick()
        {
            if (Time.time - selectedTimestamp < requiredTimeBeforeNextSelected)
            {
                return;
            }

            if (currentSelectionState == SelectionState.Selected)
            {
                OnDeselectMap?.Invoke(mapId);
                return;
            }
            else
            {
                OnSelectMap?.Invoke(mapId);
            }
        }