示例#1
0
文件: Tap.cs 项目: emsha/FunFactory
    private bool CanSelectMachine()
    {
        if (IsPointerOverUI())
        {
            return(false);
        }
        Vector2 position = RoundVector(MouseWorldPosition());

        return(Machines.ElementAt(position));
    }
示例#2
0
文件: Tap.cs 项目: emsha/FunFactory
    private bool CanPlaceMachine()
    {
        if (IsPointerOverUI() || !UI.Machines.toPlace ||
            UI.Select.selectedMachineGob != null)
        {
            return(false);
        }
        Vector2 position = RoundVector(MouseWorldPosition());

        return(!Machines.ElementAt(position));
    }