// Cinema Suite using UnityEngine; namespace CinemaDirector { /// /// Event that captures a screenshot when triggered. /// [CutsceneItem("Utility", "Storyboard", CutsceneItemGenre.GlobalItem)] public class StoryboardEvent : CinemaGlobalEvent { public static int Count = 0; // Count how many screenshots have been captured. /// /// Capture screenshot on trigger. /// public override void Trigger() { Application.CaptureScreenshot(string.Format(@"Assets\{0}{1}.png", this.gameObject.name, Count++)); } } }