示例#1
0
 void timelineMarker_CoordChanged(object sender, EventArgs e)
 {
     respondToCoordChange(timelineMarker.Left, timelineMarker.Right, timelineMarker.Width);
     if (MarkerMoved != null)
     {
         MarkerMoved.Invoke(this, timelineMarker.Time);
     }
 }
示例#2
0
文件: Marker.cs 项目: Alodrin/gp3_HW
        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();
        }