コード例 #1
0
        public void UnitMouseDown(WSUnitManager unit)
        {
            unit.FullBackground();

            if (!inputEnabled)
            {
                return;
            }

            unitBeingDragged             = unit;
            cameraHandler.dragPanEnabled = false;
        }
コード例 #2
0
        public void UnitMouseExit(WSUnitManager unit)
        {
            unit.FullBackground();

            if (!inputEnabled)
            {
                return;
            }

            wsController.UnitEndHover(unit);

            if (Input.GetMouseButton(0) && unitBeingDragged == unit)
            {
                unit.CreateUnitGhost();
            }
            unitBeingDragged = null;
        }