private void SlotSelected(SlotBehaviour slot) { if (slot.WasMarked) { return; } _currentSelectedSlot = slot; SelectSlot(slot); _endTurnBtn.interactable = true; }
private void SelectSlot(SlotBehaviour selectedSlot) { for (int i = 0; i < _slotsBehaviour.Length; i++) { var slot = _slotsBehaviour[i]; if (slot.WasMarked) { continue; } slot.SetSelected(slot == selectedSlot); } }
public void Play() { GameServices.PlayInSlot(_currentSelectedSlot.Index); _currentSelectedSlot = null; _endTurnBtn.interactable = false; }