Beispiel #1
0
 public void setToolType(ToolBoxEnum type)
 {
     if (toolType != type)
     {
         toolType = type;
     }
 }
Beispiel #2
0
        public InputEventData(ToolBoxEnum type)
        {
            touchesThisFrame = new Touch[Input.touchCount];
            for (int i = 0; i < Input.touchCount; i++)
            {
                touchesThisFrame[i] = Input.GetTouch(i);
            }

            mouseInput = new MouseStatusData("This doesn't do anything");

            mousePosition = Input.mousePosition;

            mouseXZProjection = mousePosition.MousePickToXZPlane();

            mouseXZProjectionStepwise = mousePosition.MousePickToXZPlaneStepWise();

            nodePos = mouseXZProjectionStepwise.ToNodePosition();

            toolType = type;
        }
Beispiel #3
0
 void OnToolUpdate(ToolBoxEnum type)
 {
     setToolType(type);
 }