Ejemplo n.º 1
0
 public void SetController(Slicer2DInputController inputController, Slicer2DVisuals visualsSettings, Slice2DLayer layerObject, Slicer2DControllerEventHandling eventHandling)
 {
     input        = inputController;
     visuals      = visualsSettings;
     sliceLayer   = layerObject;
     eventHandler = eventHandling;
 }
Ejemplo n.º 2
0
    void Start()
    {
        // Getting slicer input controller
        controller = GetComponent <Slicer2DLinearController>().input;

        // Enabling input events programming
        controller.SetRawInput(false, 0);
    }
Ejemplo n.º 3
0
    void Start()
    {
        // Getting slicer input controller
        controller = GetComponent <Slicer2DController>().input;

        // Enabling input events programming
        controller.SetRawInput(false);

        controller.AddCompletedEvents(EventsCompleted);

        SetNewEvent();
    }