public void MovePrevious() { DisableHighlight(); _indexSelector.MovePrevious(); while (!_indexSelector.Current.HasCard) { _indexSelector.MovePrevious(); } _lastIndex = _indexSelector.Index; EnableHighlight(); }
private void UpdateUi() { if (_isConfirmingTurn) { _shouldHighlight = false; } var activeCards = cards.ShownCards; _indexSelector = new IndexSelector <CardPresenter>(activeCards, Math.Min(activeCards.Length - 1, _lastIndex)); if (activeCards.Any(c => c.HasCard)) { while (!_indexSelector.Current.HasCard) { _indexSelector.MovePrevious(); } } _lastIndex = _indexSelector.Index; if (_shouldHighlight) { EnableHighlight(); } else { DisableHighlight(); } }
public void MovePrevious() { _selector.MovePrevious(); OnTargetChanged.Publish(); }
public void MovePrevious() => _cursor.MovePrevious().Select();
public void MovePrevious() { _pages.Current.gameObject.SetActive(false); _pages.MovePrevious().gameObject.SetActive(true); player.Play(pageSound); }
public void MovePrevious() { _selector.MovePrevious(); OnTargetChanged.Publish(); Message.Publish(new TargetChanged(Current)); }
public void MovePrevious() { DisableHighlight(); _indexSelector.MovePrevious(); EnableHighlight(); }