public void RunEvent(String next) { if (events.ContainsKey(next)) { EVENT eventInstance = (events[next]); eventInstance.Reset(); eventInstance.Start(); currentEvents.Add(eventInstance); } }
public override void Start() { index = 0; if (EVENTs.Count > 0) { currentEVENT = EVENTs[index]; currentEVENT.Start(); } Reset(); }
public override void Start() { if (SM.CheckCondition(stateCondition)) { targetEvent.Start(); } else { ready = true; } }
public override bool Update(GameTime t) { if (currentEVENT.Update(t)) { index++; if (index >= EVENTs.Count) { ready = true; } else { currentEVENT = EVENTs[index]; currentEVENT.Start(); } } return(ready); }