public void SelectStageButton(GameObject stageNumberObj) { level = Int32.Parse(stageNumberObj.GetComponentInChildren <Text> ().text); GameObject stageListPrefab = stageControllerPrefabList[level - 1]; //GameManager.StageControllerPrefab = stageListPrefab; if (playerNumber.PlayMode) { RoomNameEnter(); lobbyManager.RoomNameEnter(); } else { stageSplashObj.gameObject.SetActive(false); roomNamePanelObj.gameObject.SetActive(true); } }