// Cinema Suite using UnityEngine; namespace CinemaDirector { /// /// Stop a given Cutscene from playing. /// [CutsceneItem("Cutscene", "Stop Cutscene", CutsceneItemGenre.GlobalItem)] public class StopCutscene : CinemaGlobalEvent { // The cutscene to be stopped. public Cutscene cutscene; /// /// Trigger this event and stop the given Cutscene from playing. /// public override void Trigger() { if (cutscene != null) { cutscene.Stop(); } } } }