// Start is called before the first frame update
    void Start()
    {
        surfaceDetection    = GetComponent <SurfaceDetection>();
        caliperEventHandler = GetComponent <CaliperEventHandler>();
        firebaseHandler     = GetComponent <FirebaseHandler>();

        placeButton.onClick.AddListener(PlaceButtonEvent);
        resetButton.onClick.AddListener(ResetAnchor);
    }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     arNoteCreation      = GameObject.Find("Script Manager").GetComponent <ARNoteCreation>();
     caliperEventHandler = GameObject.Find("Script Manager").GetComponent <CaliperEventHandler>();
 }