Beispiel #1
0
        public IEnumerator OnLogined(string account)
        {
            //Debugger.Enable = true;
            Global.OpenId = account;
            Debug.Log(Global.OpenId);
            yield return(StartCoroutine(MgobeHelper.InitSDK()));

            if (Global.IsInRoom())
            {
                if (MgobeHelper.RoomInfo.FrameSyncState == FrameSyncState.Start)
                {
                    //找一个客户端拿数据
                    //拿完直接显示对应数据,开始sim
                    MgobeHelper.SendToClient(null, RecvType.RoomOthers, "ReConnect", () =>
                    {
                    });
                }
                else
                {
                    UIManager.UF_GetInstance().UF_ShowView("UI System", "ui_panelcreation", null);
                }
            }
            else
            {
                UIManager.UF_GetInstance().UF_ShowView("UI System", "ui_panellan", null);
            }
        }
Beispiel #2
0
    public IEnumerator OnLogined(string account)
    {
        //Debugger.Enable = true;
        Global.OpenId = account;
        Debug.Log(Global.OpenId);
        yield return(StartCoroutine(MgobeHelper.InitSDK()));

        if (Global.IsInRoom())
        {
            AllUI.Instance.Show("PanelCreation");
        }
        else
        {
            AllUI.Instance.Show("PanelLan");
        }
    }