コード例 #1
0
    private void Start()
    {
        mapSession = new MapSession(mapWorker, MapMetaManager.LoadAll());
        mapSession.LoadMapMeta(mapTemp, true);

        mapSession.CurrentMapLocalized = (mapData) =>
        {
            this.mapData = mapData;
        };
        videoCamera.DeviceOpened += () =>
        {
            if (videoCamera == null)
            {
                return;
            }
            videoCamera.FocusMode = CameraDeviceFocusMode.Continousauto;
        };


#if UNITY_EDITOR
        dataDropdown.gameObject.SetActive(true);
        InitPointData();
#endif
        PropDragger.SetMapSession(mapSession);
    }
コード例 #2
0
 private void Start()
 {
     mapSession = new MapSession(mapWorker, MapMetaManager.LoadAll());
     mapSession.LoadMapMeta(mapTemp, false);
     mapSession.CurrentMapLocalized += (MapData) =>
     {
         //识别出来后播放一段声音 提示用户已经加载出来了
         if (aS.isPlaying == false)
         {
             aS.PlayOneShot(aS.clip);
         }
     };
     videoCamera.DeviceOpened += () =>
     {
         if (videoCamera == null)
         {
             return;
         }
         videoCamera.FocusMode = CameraDeviceFocusMode.Continousauto;
     };
 }