コード例 #1
0
        public void Execute()
        {
            int index = game.GetNPCIndex();

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

            game.UpdateNPC(nonPlayers[index]);
            game.SetNPCIndex(index);
        }
コード例 #2
0
        public void Execute()
        {
            int index = game.GetNPCIndex();

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

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