mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-12-02 01:47:58 +01:00
26 lines
631 B
C#
26 lines
631 B
C#
|
// Cinema Suite
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace CinemaDirector
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Stop a given Cutscene from playing.
|
||
|
/// </summary>
|
||
|
[CutsceneItem("Cutscene", "Stop Cutscene", CutsceneItemGenre.GlobalItem)]
|
||
|
public class StopCutscene : CinemaGlobalEvent
|
||
|
{
|
||
|
// The cutscene to be stopped.
|
||
|
public Cutscene cutscene;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Trigger this event and stop the given Cutscene from playing.
|
||
|
/// </summary>
|
||
|
public override void Trigger()
|
||
|
{
|
||
|
if (cutscene != null)
|
||
|
{
|
||
|
cutscene.Stop();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|