|
|
@ -7,7 +7,7 @@ namespace Fungus.Script |
|
|
|
[HelpText("Waits for period of time before executing the next command in the sequence.")] |
|
|
|
[HelpText("Waits for period of time before executing the next command in the sequence.")] |
|
|
|
public class Wait : FungusCommand |
|
|
|
public class Wait : FungusCommand |
|
|
|
{ |
|
|
|
{ |
|
|
|
public float duration; |
|
|
|
public float duration = 1; |
|
|
|
|
|
|
|
|
|
|
|
public override void OnEnter() |
|
|
|
public override void OnEnter() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -18,6 +18,11 @@ namespace Fungus.Script |
|
|
|
{ |
|
|
|
{ |
|
|
|
Continue(); |
|
|
|
Continue(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override string GetSummary() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return duration.ToString() + " seconds"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |