Beispiel #1
0
    void Start()
    {
        placementHandler = GetComponent <PlacementHandler> ();
        // @Sanket: this will not work if we do asset identification via service call
//		mainObject = placementHandler.ObjectToPlace;
//		anim = mainObject.GetComponent<Animation>();
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     recognizer                 = GetComponent <Recognizer> ();
     placementHandler           = GetComponent <PlacementHandler> ();
     recognizer.TextRecognized += new Recognizer.TextRecognizedHandler(handleRecognized);
     placementHandler.Placed   += new PlacementHandler.PlacedHandler(handlePlaced);
     if (mock)
     {
         testMesh.transform.position = new Vector3(0.0f, 0.0f, 3.0f);
         testMesh.SetActive(true);
         handlePlaced(testMesh);
         placementHandler.ObjectToPlace = testMesh;
     }
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     //recognizer = GetComponent<Recognizer> ();
     placementHandler = GetComponent <PlacementHandler> ();
     //entityMap = GetComponent<EntityMap> ();
     //recognizer.TextRecognized += new Recognizer.TextRecognizedHandler(handleRecognized);
     //uiElements = GetComponent<UIElements> ();
     placementHandler.Placed += new PlacementHandler.PlacedHandler(handlePlaced);
     if (mock)
     {
         testMesh = loadMesh("AB/1234");
         testMesh.transform.position = new Vector3(0.0f, 0.0f, 3.0f);
         handlePlaced(testMesh);
         //placementHandler.ObjectToPlace = testMesh;
     }
 }
Beispiel #4
0
    // Start is called before the first frame update
    void Start()
    {
        placementHandler  = GetComponent <PlacementHandler>();
        pointCloudHandler = GetComponent <PointCloudHandler>();
        communication     = GetComponent <Communication>();

        savePanel.SetActive(false);
        settingsPanel.SetActive(false);

        saveButton.onClick.AddListener(SetActiveSavePanel);
        placeButton.onClick.AddListener(placementHandler.PlaceObject_async);
        settingsButton.onClick.AddListener(SettingsClicked);
        visualizationToggle.onValueChanged.AddListener(delegate { SetPointCloudVisualization(pointCloudVisualizationToggle); });
        saveNameInputField.onEndEdit.AddListener(SetSaveName);
        confirmSaveButton.onClick.AddListener(SavePointCloud);

        confirmSaveButton.interactable = false;
    }
 void Awake()
 {
     Inst = this;
 }
Beispiel #6
0
 // Use this for initialization
 void Start()
 {
     placementHandler = FindObjectOfType <PlacementHandler>();
 }
Beispiel #7
0
 // Use this for initialization
 void Start()
 {
     placementHandler = GetComponent <PlacementHandler>();
 }