예제 #1
0
 public void OnDragEnter(DragSettings dragSettings)
 {
     if (CanDrag && dragSettings.WasClicked)
     {
         PathManager.Instance.SelectedPath = MobileUnit.Path;
         MobileUnit.OnDragEnter();
     }
 }
예제 #2
0
 public void OnDragExit(DragSettings dragSettings)
 {
     if (CanDrag && dragSettings.WasClicked)
     {
         PathManager.Instance.SelectedPath = null;
         UnitClickable collidingUnit = Colliding();
         if (collidingUnit != null)
         {
             MobileUnit.OnDragRelease(collidingUnit.Unit);
         }
     }
 }
예제 #3
0
 public void OnRelease(ReleaseSettings releaseSettings)
 {
     MobileUnit.OnRelease();
 }