public CameraSourceData CameraData2Player(CameraSource data, Vector3 target_pos) { CameraSourceData ret; ret._offset = data._data._offset + target_pos; ret._rotaion = data._data._rotaion; return(ret); }
// 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); } }
// 默认源之间的切换Bug public void SetDefaultSource(CameraSource default_source) { _default_source = default_source; }