public void OnBeginDrag(PointerEventData ped) { StopMovement(); if (!Moving) { MovementStarted.Invoke(); } }
void InvokeOnMovementStarted() { try { MovementStarted?.Invoke(this); } catch (Exception e) { Urho.IO.Log.Write(LogLevel.Debug, $"There was an unexpected exception during the invocation of {nameof(MovementStarted)}: {e.Message}"); } }
public void OnBeginDrag(PointerEventData ped) { if (contentPositions.Count < 2) { return; } StopMovement(); if (!Moving) { MovementStarted.Invoke(); } }
/// <summary> /// Function for going to a specific screen. /// *Note the index is based on a zero-starting index. /// </summary> /// <param name="info">All of the info about how you want it to move</param> public void GoTo(MoveInfo info) { if (!Moving && info.index != ClosestItemIndex) { MovementStarted.Invoke(); } if (info.indexType == MoveInfo.IndexType.childIndex) { mLerpTime = info.duration; GoToChild(info.index, info.jump); } else if (info.indexType == MoveInfo.IndexType.positionIndex) { mLerpTime = info.duration; GoToContentPos(info.index, info.jump); } }
public void NotifyMovementStarted() { MovementStarted?.Invoke(this, null); }
public void OnMovementStarted() { MovementStarted?.Invoke(this, null); }
protected virtual void OnMovementStarted(EventArgs e) { MovementStarted?.Invoke(this, e); }