public void UnitMouseDown(WSUnitManager unit) { unit.FullBackground(); if (!inputEnabled) { return; } unitBeingDragged = unit; cameraHandler.dragPanEnabled = false; }
public void UnitMouseExit(WSUnitManager unit) { unit.FullBackground(); if (!inputEnabled) { return; } wsController.UnitEndHover(unit); if (Input.GetMouseButton(0) && unitBeingDragged == unit) { unit.CreateUnitGhost(); } unitBeingDragged = null; }