mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-26 15:27:59 +01:00
22 lines
No EOL
643 B
C#
22 lines
No EOL
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++));
|
|
}
|
|
}
|
|
} |