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