public void loadDiscussion() { GameObject gameObject = GameObject.Find("mChannelNameInputField"); InputField input = gameObject.GetComponent <InputField> (); channelName = input.text; if (string.IsNullOrEmpty(channelName)) { logD("channelName is empty"); input.placeholder.GetComponent <Text> ().text = "Please input your chatRoomID"; } else { logD("channelName is not null"); // zhang mRtcEngine.AgoraIMInit(appKey); mRtcEngine.AgoraIMConnect("qyKknH03CtaTmAVpp5FhCMz7psBGhT4XrcX5ZITBY4pOJ/9FDpbJ6a9gymzDN1i3deDs7BFxUHYhKacTGi+Qhw=="); mRtcEngine.LeaveChannel(); //12345 //mRtcEngine.AgoraIMInit("82hegw5u8y3dx"); //mRtcEngine.AgoraIMConnect("YXf2Dp3I3+iM7KFYIcp6i8z7psBGhT4XrcX5ZITBY4pOJ/9FDpbJ6WTAec4LrsATB1mr7uno1Kk1ssc7DJOQGQ=="); //mRtcEngine.AgoraIMConnect("XKSg2GY5Jth5eJuHBEGbZNRl9bQ/jDob3/tLwFxUFoeSyZwLtsrMPoDSGo531Exqh8vB3WPzu1pHTCKB3wnLMW80nPpqk+OW"); //mRtcEngine.LeaveChannel(); // // enable log mRtcEngine.AgoraIMInitMessageReceiveListener(); userInfo = new UserInfo(); userInfo.userId = "zhang"; userInfo.name = "zhang0000000"; userInfo.portraitUri = "https://www.alibaba.com/"; SceneManager.LoadScene("IMScene", LoadSceneMode.Single); } }