private void DecideSelectorArrow(ArrowType iType) { _clsFleetInfos.buttons[(int)iType].state = UIButtonColor.State.Normal; switch (iType) { case ArrowType.Left: _clsRouletteSelector.MovePrev(); break; case ArrowType.Right: _clsRouletteSelector.MoveNext(); break; } }
private void OnSwipeAction(UIDisplaySwipeEventRegion.ActionType actionType, float deltaX, float deltaY, float movedPercentageX, float movedPercentageY, float elapsedTime) { if (actionType == UIDisplaySwipeEventRegion.ActionType.FingerUp && !mStageConfirm.Shown) { if (40f < deltaX) { mRouletteSelector.MovePrev(); movedPercentageX = 0f; } else if (deltaX < -40f) { mRouletteSelector.MoveNext(); movedPercentageX = 0f; } else if (!(deltaY < -40f)) { } } }