コード例 #1
0
 private void clearLobbyItem()
 {
     if (lobbyItem != null)
     {
         GameObject.Destroy(lobbyItem.gameObject);
         lobbyItem = null;
     }
 }
コード例 #2
0
 private LobbyRoomItem GetLobbyItem()
 {
     if (lobbyItem == null)
     {
         lobbyItem = ResourceManager.Instance.Load <LobbyRoomItem>("Prefabs/LobbyRoomItem.prefab");
         lobbyItem.transform.SetParent(SceneManager.Instance.Lobby.roomList, false);
         lobbyItem.SetRoomId(RoomId);
     }
     return(lobbyItem);
 }