// Start is called before the first frame update void Start() { com.fpnn.common.ErrorRecorder RerrorRecorderecorder = new ErrorRecorder(); Config config = new Config { errorRecorder = RerrorRecorderecorder }; ClientEngine.Init(config); RTMConfig rtmConfig = new RTMConfig() { defaultErrorRecorder = RerrorRecorderecorder }; RTMControlCenter.Init(rtmConfig); testThread = new Thread(TestMain) { IsBackground = true }; testThread.Start(); /* * This is a temporary version of the test code, because the audio-related functions require running on the main thread, so add it here */ // tester = new Audios(); // tester.Start(rtmServerEndpoint, pid, uid, token); }
static void ManualInitForTesting() { RTMConfig config = new RTMConfig() { defaultErrorRecorder = new example.common.ErrorRecorder() }; RTMControlCenter.Init(config); }
void OnApplicationQuit() { tester.Stop(); Debug.Log("Test App exited."); #if UNITY_EDITOR RTMControlCenter.Close(); ClientEngine.Close(); #endif }
// Start is called before the first frame update void Start() { com.fpnn.common.ErrorRecorder RerrorRecorderecorder = new ErrorRecorder(); Config config = new Config { errorRecorder = RerrorRecorderecorder }; ClientEngine.Init(config); RTMConfig rtmConfig = new RTMConfig() { defaultErrorRecorder = RerrorRecorderecorder }; RTMControlCenter.Init(rtmConfig); testThread = new Thread(TestMain) { IsBackground = true }; testThread.Start(); }