Пример #1
0
        public bool BeginRecording()
        {
            if (unit.Recording || !unit.Camera)
            {
                return(false);
            }

            ApplySettings();

            unit.BeginRecording();

            AttachHook();

            return(true);
        }
Пример #2
0
        public bool BeginRecording()
        {
            if (unit.Recording)
            {
                return(false);
            }

            Camera camera = GetComponent <Camera>();

            if (!camera)
            {
                return(false);
            }

            ApplySettings(camera);

            unit.Camera = camera;
            unit.BeginRecording();

            Debug.LogFormat("{0}.BeginRecording()", GetType().Name);

            return(true);
        }