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.
23 lines
376 B
23 lines
376 B
10 years ago
|
using UnityEngine;
|
||
|
using System;
|
||
|
using System.Collections;
|
||
|
|
||
10 years ago
|
namespace Fungus.Script
|
||
10 years ago
|
{
|
||
10 years ago
|
[HelpText("Waits for period of time before executing the next command in the sequence.")]
|
||
10 years ago
|
public class Wait : FungusCommand
|
||
10 years ago
|
{
|
||
|
public float duration;
|
||
|
|
||
10 years ago
|
public override void OnEnter()
|
||
10 years ago
|
{
|
||
|
Invoke ("OnWaitComplete", duration);
|
||
|
}
|
||
|
|
||
|
void OnWaitComplete()
|
||
|
{
|
||
10 years ago
|
Continue();
|
||
10 years ago
|
}
|
||
|
}
|
||
|
|
||
|
}
|