chrisgregan
11 years ago
9 changed files with 122 additions and 3 deletions
@ -0,0 +1,29 @@
|
||||
using UnityEngine; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace Fungus.Script |
||||
{ |
||||
[CommandInfo("Scripting", |
||||
"Else", |
||||
"Marks the start of a sequence block to be executed when the preceding If statement is false.", |
||||
253, 253, 150)] |
||||
public class Else : FungusCommand |
||||
{ |
||||
public override void OnEnter() |
||||
{ |
||||
Continue(); |
||||
} |
||||
|
||||
public override int GetPreIndent() |
||||
{ |
||||
return -1; |
||||
} |
||||
|
||||
public override int GetPostIndent() |
||||
{ |
||||
return 1; |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 3fa968f01a7f9496bb50e13dfe16760d |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
@ -0,0 +1,24 @@
|
||||
using UnityEngine; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace Fungus.Script |
||||
{ |
||||
[CommandInfo("Scripting", |
||||
"EndIf", |
||||
"Marks the end of an If statement block.", |
||||
253, 253, 150)] |
||||
public class EndIf : FungusCommand |
||||
{ |
||||
public override void OnEnter() |
||||
{ |
||||
Continue(); |
||||
} |
||||
|
||||
public override int GetPreIndent() |
||||
{ |
||||
return -1; |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 00d52e9e9dcf4493c87045f633aefa2e |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
Binary file not shown.
Loading…
Reference in new issue