private bool CanSelectMachine() { if (IsPointerOverUI()) { return(false); } Vector2 position = RoundVector(MouseWorldPosition()); return(Machines.ElementAt(position)); }
private bool CanPlaceMachine() { if (IsPointerOverUI() || !UI.Machines.toPlace || UI.Select.selectedMachineGob != null) { return(false); } Vector2 position = RoundVector(MouseWorldPosition()); return(!Machines.ElementAt(position)); }