public void ChangeCharacterSkin(int playerIndex, int step) { SelectScreenPlayerData playerData = selectScreenPlayerDatas[playerIndex]; int currentIndex = playerData.skinIndex; currentIndex = MMath.SumAllowFlow(currentIndex, step, 0, characterSkins.GetSkinsCount() - 1); playerData.skinIndex = currentIndex; csPanels[playerData.playerSessionData.playerIndex].UpdatePanel(playerData); }