Example #1
0
    // 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);
    }
Example #2
0
        static void ManualInitForTesting()
        {
            RTMConfig config = new RTMConfig()
            {
                defaultErrorRecorder = new example.common.ErrorRecorder()
            };

            RTMControlCenter.Init(config);
        }
Example #3
0
    void OnApplicationQuit()
    {
        tester.Stop();
        Debug.Log("Test App exited.");
#if UNITY_EDITOR
        RTMControlCenter.Close();
        ClientEngine.Close();
#endif
    }
Example #4
0
    // 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();
    }