示例#1
0
 /// <summary>
 /// スワイプ開始
 /// </summary>
 private void OnStartedSwipe(SwipeEventData ev)
 {
     if (thruster)
     {
         thruster.ThrusterAwake();
     }
 }
示例#2
0
 /// <summary>
 /// スワイプ終了
 /// </summary>
 private void OnEndedSwipe(SwipeEventData ev)
 {
     if (thruster)
     {
         thruster.ThrusterStandby();
         thruster.SetThrusterAngle(0f);
     }
 }
示例#3
0
 /// <summary>
 /// スワイプ中
 /// </summary>
 private void OnSwiping(SwipeEventData ev)
 {
     //角度の設定
     if (attitude)
     {
         attitude.Go(ev.detector.Angle);
     }
 }
        public void OnSwipeRight(SwipeEventData eventData, float value)
        {
            if (!j_Slider.interactable || (supportStep && j_Timer < j_SwipeDelay))
            {
                return;
            }

            j_Timer = 0;
            ProcessSwipe(Direction.Horizontal, supportStep ? step : value *cntrl);
        }
示例#5
0
        private void OnVerticalSwipe(SwipeEventData data, float swipeDelta)
        {
            if (!j_Interactable.IsEnabled)
            {
                return;
            }
            ////Debug.LogError("My value V : " + swipeDelta);
            SliderValue += (maxValue * swipeDelta) * swipeOffset;

            if (updateSliderUIDirectly)
            {
                SliderValueUI = SliderValue;
            }

            OnValueUpdated?.Invoke(SliderValue);
            //SliderValue = Mathf.Clamp01(SliderValue);
        }
示例#6
0
 public void OnSwipeDown(SwipeEventData data, float eventData)
 {
     OnSwipeVerticle(eventData);
 }
示例#7
0
 public void OnSwipeRight(SwipeEventData data, float eventData)
 {
     OnSwipeHorizontal(eventData);
 }
 public void OnSwipeStarted(SwipeEventData eventData)
 {
 }
 public void OnSwipeDown(SwipeEventData eventData, float value)
 {
     swipeData = $"Direction: Down, Value: {value}"; swipeStatus[(int)eventData.SourceId] = $"Down : {value}";
 }
示例#10
0
 public void OnSwipeCompleted(SwipeEventData data)
 {
     m_Scrolling = false;
 }
 public void OnSwipeCanceled(SwipeEventData eventData) => swipeStatus[(int)eventData.SourceId]  = "Canceled";
    }                                                                                                   //=> swipeStatus[(int) eventData.SourceId] = "Updated";

    public void OnSwipeCompleted(SwipeEventData eventData) => swipeStatus[(int)eventData.SourceId] = "Completed";
 public void OnSwipeUpdated(SwipeEventData eventData, Vector2 swipeData)
 {
     swipeDelta = swipeData;
 }                                                                                                   //=> swipeStatus[(int) eventData.SourceId] = "Updated";
示例#14
0
 public void OnSwipeStarted(SwipeEventData data)
 {
     m_Scrolling = true;
 }
 public void OnSwipeCanceled(SwipeEventData eventData)
 {
 }
示例#16
0
 public void OnSwipeUpdated(SwipeEventData data, Vector2 swipeData)
 {
 }
 public void OnSwipeCompleted(SwipeEventData eventData)
 {
 }
示例#18
0
 public void OnSwipeCanceled(SwipeEventData data)
 {
     m_Scrolling = false;
 }
 public void OnSwipeRight(SwipeEventData eventData, float value)
 {
     swipeData = $"Direction: Right, Value: {value}"; swipeStatus[(int)eventData.SourceId] = $"Right : {value}";
 }