// Cinema Suite
using UnityEngine;
namespace CinemaDirector
{
///
/// Event for loading a new level
///
[CutsceneItem("Utility", "Load Level", CutsceneItemGenre.GlobalItem)]
public class LoadLevelEvent : CinemaGlobalEvent
{
// The index of the level to be loaded.
public int Level = 0;
///
/// Trigger the level load. Only in Runtime.
///
public override void Trigger()
{
if (Application.isPlaying)
{
Application.LoadLevel(Level);
}
}
}
}