Ejemplo n.º 1
0
        public void Execute()
        {
            int index = game.GetNPCIndex();

            index--;
            if (index < 0)
            {
                index = nonPlayers.Count - 1;
            }

            game.UpdateNPC(nonPlayers[index]);
            game.SetNPCIndex(index);
        }
Ejemplo n.º 2
0
        public void Execute()
        {
            int index = game.GetNPCIndex();

            index++;
            if (index > nonPlayers.Count - 1)
            {
                index = 0;
            }

            game.UpdateNPC(nonPlayers[index]);
            game.SetNPCIndex(index);
        }