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
532 B
31 lines
532 B
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 key = ""; |
|
|
|
public override void OnEnter() |
|
{ |
|
Continue(); |
|
} |
|
|
|
public override string GetSummary() |
|
{ |
|
return key; |
|
} |
|
|
|
public override Color GetButtonColor() |
|
{ |
|
return new Color32(200, 200, 253, 255); |
|
} |
|
} |
|
|
|
} |