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