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.
31 lines
544 B
31 lines
544 B
10 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Fungus
|
||
|
{
|
||
|
[CommandInfo("Scripting",
|
||
|
"Label",
|
||
|
"Marks a position in the command list for execution to jump to.")]
|
||
|
[AddComponentMenu("")]
|
||
|
public class Label : Command
|
||
|
{
|
||
|
public string labelName = "";
|
||
|
|
||
|
public override void OnEnter()
|
||
|
{
|
||
|
Continue();
|
||
|
}
|
||
|
|
||
|
public override string GetSummary()
|
||
|
{
|
||
|
return labelName;
|
||
|
}
|
||
|
|
||
|
public override Color GetButtonColor()
|
||
|
{
|
||
|
return new Color32(253, 253, 150, 255);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|