public override void ReceiveEvent(IGameEvent ev) { if (sequenceInterpreter == null) { if (ev.Name.ToLower() == "start sequence") { Sequence secuence = (ev.getParameter("Sequence") as Sequence); sequenceInterpreter = new SequenceInterpreter(secuence); } } else { sequenceInterpreter.EventHappened(ev); } }
public override void ReceiveEvent(IGameEvent ev) { if (interpreter != null) { interpreter.EventHappened(ev); } if (ev.Name == "event finished" && ev.getParameter("event") == ge) { if (loop && !localExecution) { ge = null; Launch(); } } }