An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
825 B

using UnityEngine;
namespace Fungus
{
/// <summary>
/// Reload the current scene
/// </summary>
[CommandInfo("Scene",
"Reload",
"Reload the current scene")]
[AddComponentMenu("")]
public class ReloadScene : Command
{
[Tooltip("Image to display while loading the scene")]
[SerializeField]
protected Texture2D loadingImage;
public override void OnEnter()
{
SceneLoader.LoadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().name, loadingImage);
Continue();
}
public override string GetSummary()
{
return "";
}
public override Color GetButtonColor()
{
return new Color32(235, 191, 217, 255);
}
}
}