예제 #1
0
        public CameraSourceData CameraData2Player(CameraSource data, Vector3 target_pos)
        {
            CameraSourceData ret;

            ret._offset  = data._data._offset + target_pos;
            ret._rotaion = data._data._rotaion;

            return(ret);
        }
예제 #2
0
        // TODO bug不想管了,这里有一个Bug 就是拉回到原始的时候如果有新的节点会有bug
        public void _on_add_source(System.Object obj)
        {
            CameraSource source = obj as CameraSource;

            if (source == null)
            {
                return;
            }

            CameraSourceTimer timer = CameraSourceWrapperFactory.Create(source);

            _list_camera_source_timer.Add(timer);
            if (next_camera_source_timer_timer == null)
            {
                _init_next_camera_source(timer);
            }
        }
예제 #3
0
 // 默认源之间的切换Bug
 public void SetDefaultSource(CameraSource default_source)
 {
     _default_source = default_source;
 }