Exemplo n.º 1
0
        // public void init(){
        //    // Debug.Log("HandGestureManager:init");
        //    //start preview
        //    // if(SplitCamera.Instance.isDeviceConnected()){
        //    //    Debug.Log("HandGestureManager:startPreview");
        //    //    SplitCamera.Instance.startPreview();
        //    // }
        // }

        HandGestureManager()
        {
            m_HandSignalController   = new HandSignalController();
            m_HandCursorController   = new HandCursorController();
            m_HandGrabController     = new HandGrabController();
            m_HandTrackingController = new HandTrackingController();
        }
Exemplo n.º 2
0
 public void Destroy()
 {
     if (m_HandSignalController != null)
     {
         m_HandSignalController.onDestroy();
         m_HandSignalController = null;
     }
     if (m_HandCursorController != null)
     {
         m_HandCursorController.onDestroy();
         m_HandCursorController = null;
     }
     if (m_HandGrabController != null)
     {
         m_HandGrabController.onDestroy();
         m_HandGrabController = null;
     }
     if (m_HandTrackingController != null)
     {
         m_HandTrackingController.onDestroy();
         m_HandTrackingController = null;
     }
     if (instance != null)
     {
         instance = null;
     }
 }