Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void ControlNextLane(int playerIndex)
        {
            var currLane = GetMapUtil(playerIndex);

            SelectedLane.Remove(playerIndex);
            var nextLane = (currLane + 1) % numLane;

            SelectedLane.Add(playerIndex, nextLane);
        }