예제 #1
0
    public static void WakeupWebGM()
    {
        if (m_hasWakeup)
        {
            Debug.LogWarning("WebGM has already wakeup");
        }
        else
        {
            var console = new GameObject("CURLD Console");
            GameObject.DontDestroyOnLoad(console);

            console.AddComponent <CUDLR.Server>();

            Debug.Log("WebGM service started");

            var tipSys = GameRoot.GetGameSystemS <MsgInfoSystem>();
            if (tipSys != null)
            {
                tipSys.ShowMsgInfo("WebGM service started");
            }
        }
    }