Пример #1
0
        public GameEventData AddGameEvent(Action callback, Func <bool> condition)
        {
            GameEventData gameEvent = new GameEventData(gameEventList.Count, callback, condition);

            gameEventList.Add(gameEvent);
            return(gameEvent);
        }
Пример #2
0
        public void Excute()
        {
            GameEventData gameEvent = gameEventList[index];

            if (gameEvent.id == -1)
            {
                Next();
                return;
            }
            if (gameEvent.IsCondition())
            {
                gameEvent.Excute();
                Next();
            }
        }
Пример #3
0
 public void Reset(GameEventData gameEvent)
 {
     gameEvent.Reset();
 }
Пример #4
0
 public void Excute(GameEventData gameEvent)
 {
     gameEvent.Excute();
     gameEvent.Reset();
 }