Esempio n. 1
0
 public static void NewBoardBeingPlaced(GameObject NewBoard)
 {
     if (NewBoard != null)
     {
         Mover.BeginMove(NewBoard);
     }
 }
Esempio n. 2
0
        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);
                }
            }
        }