mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-12-02 09:47:59 +01:00
26 lines
No EOL
586 B
C#
26 lines
No EOL
586 B
C#
// 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();
|
|
}
|
|
}
|
|
}
|
|
} |