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.
28 lines
461 B
28 lines
461 B
#if UNITY_EDITOR |
|
using UnityEditor; |
|
#endif |
|
using UnityEngine; |
|
using System.Collections; |
|
using Fungus; |
|
|
|
public class SequenceController : MonoBehaviour |
|
{ |
|
public float stepTime; |
|
|
|
public Sequence activeSequence; |
|
|
|
public void ExecuteSequence(Sequence sequence) |
|
{ |
|
if (activeSequence == null) |
|
{ |
|
return; |
|
} |
|
|
|
#if UNITY_EDITOR |
|
Selection.activeGameObject = sequence.gameObject; |
|
#endif |
|
|
|
activeSequence = sequence; |
|
sequence.ExecuteNextCommand(); |
|
} |
|
}
|
|
|