using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace SimplifyXR
{

    [DirectiveCategory(DirectiveCategories.Action,
        subCategory = DirectiveSubCategory.Camera,
        directiveInfo = "This <i>action</i> triggers a <b>Camera Capture</b> Photo to be taken.",
        prettyName = "Take Photo Capture")]
    public class TakePhotoCapture : Actions
    {
        public CameraCapturePanelFeatures cameraCapturePanel;

        public override List<KnobKeywords> ReceiveKeywords()
        {
            return new List<KnobKeywords>();
        }

        public override List<KnobKeywords> SendKeywords()
        {
            return new List<KnobKeywords>();
        }

        public override void Execute()
        {
            cameraCapturePanel =
              cameraCapturePanel == null ?
              Object.FindObjectOfType<CameraCapturePanelFeatures>() :
              cameraCapturePanel;
            cameraCapturePanel?.StartCapture();
            ThisActionCompleted();
        }
    }
}



