private void InvokeNextAction() { if (currentPendingActions.Count > 0) { IGameAction nextAction = currentPendingActions.Dequeue(); Debug.Log("EXECUTE ACTION: " + nextAction.ActionType); nextAction.ExecuteAction(InvokeNextAction); gameData.CurrentActionIndex = seenActionIndex - currentPendingActions.Count; } }