public static void NewBoardBeingPlaced(GameObject NewBoard) { if (NewBoard != null) { Mover.BeginMove(NewBoard); } }
private void RunComponentMoving() { if (Input.GetMouseButtonDown(1) && Input.GetKey(KeyCode.LeftControl) && State.CurrentState == States.None && Physics.Raycast(FirstPersonInteraction.Ray(), out var hit, Settings.ReachDistance) && hit.collider.tag != "CircuitBoard" && hit.collider.tag != "Wire") { var comp = ComponentPlacer.FullComponent(hit.collider); if (comp.GetComponent <ObjectInfo>() != null) { Mover.BeginMove(comp); } } }