void timelineMarker_CoordChanged(object sender, EventArgs e) { respondToCoordChange(timelineMarker.Left, timelineMarker.Right, timelineMarker.Width); if (MarkerMoved != null) { MarkerMoved.Invoke(this, timelineMarker.Time); } }
private void OnMouseDrag() { Vector3 curScreenPoint = new Vector3(Input.mousePosition.x, Input.mousePosition.y, _screenPoint.z); Vector3 curPosition = Camera.main.ScreenToWorldPoint(curScreenPoint) + _offset; transform.position = curPosition; SetToClosestGridNode(); MarkerMoved?.Invoke(); }