public GameEventData AddGameEvent(Action callback, Func <bool> condition) { GameEventData gameEvent = new GameEventData(gameEventList.Count, callback, condition); gameEventList.Add(gameEvent); return(gameEvent); }
public void Excute() { GameEventData gameEvent = gameEventList[index]; if (gameEvent.id == -1) { Next(); return; } if (gameEvent.IsCondition()) { gameEvent.Excute(); Next(); } }
public void Reset(GameEventData gameEvent) { gameEvent.Reset(); }
public void Excute(GameEventData gameEvent) { gameEvent.Excute(); gameEvent.Reset(); }