void _CreateMediaCamera() { FileCameraSource c = new FileCameraSource(); _cameraSource = c; c.TargetNode = gameObject; c.Init(_robotIfo); _cameraSource.GetBaseTexture().OnFrameGrabbed += OnFrameGrabbed; }
void _CreateMediaCamera() { FileCameraSource c = new FileCameraSource(); _cameraSource = c; _InitCameraRenderers(); c.TargetNode = gameObject; c.Init(_robotIfo); _cameraSource.GetBaseTexture().OnFrameGrabbed += OnFrameGrabbed; if (OnCameraSourceCreated != null) { OnCameraSourceCreated(this, _cameraSource); } }