/// <summary> /// Set btn OKPlayer when it is clicked. /// </summary> public void OkPlayer() { obj.playerOK(); btnOkPlayer.SetActive(false); playerNext.SetActive(false); inputPlayer.SetActive(true); btnOkInputPlayer.SetActive(true); listUser[idOfPlayer].player.id = ObjectControl.numPlayer; listUser[idOfPlayer].player.avatarID = ObjectControl.numPlayer; }