Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     //  Screen.SetResolution(1920, 1060, false);
     chatMsgInputField = GameObject.Find("ChatMsgInputField").GetComponent <InputField>();
     chattingLog       = GameObject.Find("ChattingLog").GetComponent <Text>();
     matchInfo         = new LobbyMatchNtfPacket();
     roomEnterRes      = new RoomEnterResPacket();
     chattingLog.text  = "";
 }
    // Start is called before the first frame update
    void Start()
    {
        gameServer  = GameNetworkServer.Instance;
        errorMsgBox = gameObject.AddComponent <ErrorMsgBox>();
        Text userIDText = GameObject.Find("id_txt").GetComponent <Text>();

        roomEnterRes         = new RoomEnterResPacket();
        roomEnterRes.Result  = ERROR_CODE.DUMMY_CODE;
        userIDText.text      = GameNetworkServer.Instance.LocalUserID;
        isWatingEnterRoomRes = false;

        if (errorMsgBox != null)
        {
            errorMsgBox.Init();
        }
        else
        {
            Debug.LogWarning("errorMsgBox is null");
        }

        Debug.Log("start Lobby Scene");
    }