예제 #1
0
    Point2 UnitMove()
    {
        BlockPointGetter blockData = RightClickRayShot.GetMouseRayHitObject <BlockPointGetter>(KeyCode.Mouse0);

        if (blockData != null && (canMovePoints.Contains(blockData.point)))
        {
            unit.MoveToPoint(blockData.point);
            return(blockData.point);
        }
        return(Point2.Empty);
    }
예제 #2
0
    public bool Update()
    {
        BlockPointGetter blockData = RightClickRayShot.GetMouseRayHitObject <BlockPointGetter>(KeyCode.Mouse0);

        if (blockData != null && (canMovePoints.Contains(blockData.point)))
        {
            unit.MoveToPoint(blockData.point);
            return(true);
        }
        return(false);
    }