FiE-Game/Assets/Cinema Director/Cutscene Items/Global Items/Cutscene/PauseCutscene.cs

26 lines
586 B
C#
Raw Normal View History

2023-07-26 21:47:00 +02:00
// Cinema Suite
using UnityEngine;
namespace CinemaDirector
{
/// <summary>
/// Pause a given Cutscene.
/// </summary>
[CutsceneItem("Cutscene", "Pause Cutscene", CutsceneItemGenre.GlobalItem)]
public class PauseCutscene : CinemaGlobalEvent
{
// The cutscene to be paused.
public Cutscene cutscene;
/// <summary>
/// Pause the given Cutscene.
/// </summary>
public override void Trigger()
{
if (cutscene != null)
{
cutscene.Pause();
}
}
}
}