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.
30 lines
554 B
30 lines
554 B
10 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
10 years ago
|
namespace Fungus
|
||
10 years ago
|
{
|
||
10 years ago
|
// Note: The End If command is deprecated, use the End command instead.
|
||
10 years ago
|
[CommandInfo("Scripting",
|
||
10 years ago
|
"End",
|
||
|
"Marks the end of a conditional block.", -1)]
|
||
10 years ago
|
[AddComponentMenu("")]
|
||
10 years ago
|
public class EndIf : Command
|
||
10 years ago
|
{
|
||
|
public override void OnEnter()
|
||
|
{
|
||
|
Continue();
|
||
|
}
|
||
|
|
||
10 years ago
|
public override bool CloseBlock()
|
||
10 years ago
|
{
|
||
10 years ago
|
return true;
|
||
10 years ago
|
}
|
||
10 years ago
|
|
||
|
public override Color GetButtonColor()
|
||
|
{
|
||
|
return new Color32(253, 253, 150, 255);
|
||
|
}
|
||
10 years ago
|
}
|
||
|
|
||
|
}
|