// Use this for initialization void Start() { width = Screen.width; height = Screen.height; Debug.Log(width + " " + height + "크기"); gameState = GameState.None; nameList = new ArrayList(); gameInitList = new ArrayList(); //Debug.Log("테스트 " + ); font = new GUIStyle(); oppPointController = oppPointsPrefab.GetComponent <RPointsController>(); myPointController = myPointsPrefab.GetComponent <RPointsController>(); oppPointController.SetPoint(99); myPointController.SetPoint(99); GameObject go = new GameObject("Network"); if (go != null) { TCP transport = go.AddComponent <TCP>(); if (transport != null) { transport.RegisterEventHandler(EventCallback); } } DontDestroyOnLoad(go); string hostname = Dns.GetHostName(); IPAddress[] adrList = Dns.GetHostAddresses(hostname); ipAddr = adrList[0].ToString(); }