mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-30 00:48:00 +01:00
22 lines
643 B
C#
22 lines
643 B
C#
|
// Cinema Suite
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace CinemaDirector
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Event that captures a screenshot when triggered.
|
||
|
/// </summary>
|
||
|
[CutsceneItem("Utility", "Storyboard", CutsceneItemGenre.GlobalItem)]
|
||
|
public class StoryboardEvent : CinemaGlobalEvent
|
||
|
{
|
||
|
public static int Count = 0; // Count how many screenshots have been captured.
|
||
|
|
||
|
/// <summary>
|
||
|
/// Capture screenshot on trigger.
|
||
|
/// </summary>
|
||
|
public override void Trigger()
|
||
|
{
|
||
|
Application.CaptureScreenshot(string.Format(@"Assets\{0}{1}.png", this.gameObject.name, Count++));
|
||
|
}
|
||
|
}
|
||
|
}
|