Example #1
0
 public virtual void UpdateTimeAndPosition(SnapResult result)
 {
     if (PlacementActive == PlacementState.Waiting)
     {
         HitObject.StartTime = result.Time ?? EditorClock?.CurrentTime ?? Time.Current;
     }
 }
 /// <summary>
 /// Updates the position of this <see cref="PlacementBlueprint"/> to a new screen-space position.
 /// </summary>
 /// <param name="result">The snap result information.</param>
 public virtual void UpdatePosition(SnapResult result)
 {
     if (!PlacementActive)
     {
         HitObject.StartTime = result.Time ?? EditorClock?.CurrentTime ?? Time.Current;
     }
 }