Is Save Loaded#
Save & Load / Is Save Loaded
Description#
Returns true if there is currently a previously saved game loaded
Code#
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("Is Save Loaded")]
[Image(typeof(IconDiskSolid), ColorTheme.Type.Blue)]
[Description("Returns true if there is currently a previously saved game loaded")]
[Category("Save & Load/Is Save Loaded")]
[Keywords("Save", "Load", "Slot")]
[Serializable]
public class ConditionCoreIsSaveLoaded : Condition
{
protected override string GetTitle(GameObject source) => "Is Save Loaded";
protected override bool Run(Args args)
{
return SaveLoadManager.IsLoaded;
}
}
}