public void Execute() { int index = game.GetNPCIndex(); index--; if (index < 0) { index = nonPlayers.Count - 1; } game.UpdateNPC(nonPlayers[index]); game.SetNPCIndex(index); }
public void Execute() { int index = game.GetNPCIndex(); index++; if (index > nonPlayers.Count - 1) { index = 0; } game.UpdateNPC(nonPlayers[index]); game.SetNPCIndex(index); }