public void ControlPrevLane(int playerIndex) { var currLane = GetMapUtil(playerIndex); SelectedLane.Remove(playerIndex); var prevLane = (currLane == 0 ? numLane - 1 : (currLane - 1) % numLane); SelectedLane.Add(playerIndex, prevLane); }
public void ControlNextLane(int playerIndex) { var currLane = GetMapUtil(playerIndex); SelectedLane.Remove(playerIndex); var nextLane = (currLane + 1) % numLane; SelectedLane.Add(playerIndex, nextLane); }