/// <summary> /// スワイプ開始 /// </summary> private void OnStartedSwipe(SwipeEventData ev) { if (thruster) { thruster.ThrusterAwake(); } }
/// <summary> /// スワイプ終了 /// </summary> private void OnEndedSwipe(SwipeEventData ev) { if (thruster) { thruster.ThrusterStandby(); thruster.SetThrusterAngle(0f); } }
/// <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); }
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); }
public void OnSwipeDown(SwipeEventData data, float eventData) { OnSwipeVerticle(eventData); }
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}"; }
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";
public void OnSwipeStarted(SwipeEventData data) { m_Scrolling = true; }
public void OnSwipeCanceled(SwipeEventData eventData) { }
public void OnSwipeUpdated(SwipeEventData data, Vector2 swipeData) { }
public void OnSwipeCompleted(SwipeEventData eventData) { }
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}"; }