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