Exemplo n.º 1
0
        private void NextNode()
        {
            if (lastEvent != null)
            {
                lastEvent.RemoveListener(Advance);
            }
            msgBox.SetMessage(data.nodes[nodeIndex].message);

            GameEvent.GameEvent gameEvent = data.nodes[nodeIndex].eventToProceed;
            gameEvent.AddListener(Advance);
            lastEvent = gameEvent;
        }