public static bool TryCreateRoom(Object[] roomObjects, out GameRoom room) { if (roomObjects == null || roomObjects.Length == 0) { room = null; return(false); } room = new DefaultGameRoom(); return(true); }
public static bool TryCreateRoom(UnityEngine.Object[] roomObjects, out GameRoom room) { if (roomObjects == null || roomObjects.Length == 0) { room = null; return(false); } else { room = new DefaultGameRoom(roomObjects[0]); return(true); } }