An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.

32 lines
569 B

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CommandInfo("Flow",
"Label",
"Marks a position in the command list for execution to jump to.")]
[AddComponentMenu("")]
public class Label : Command
{
[Tooltip("Display name for the label")]
public string key = "";
public override void OnEnter()
{
Continue();
}
public override string GetSummary()
{
return key;
}
public override Color GetButtonColor()
{
return new Color32(200, 200, 253, 255);
}
}
}