Example #1
0
        void OnCreateRoom(GameMsgBase msg)
        {
            GameMsg_S2C_CreateRoomSuc res = msg as GameMsg_S2C_CreateRoomSuc;

            if (res != null)
            {
                SceneSwitchMgr.TrySwitch(new RoomSceneSwitch(CreateRoomType.Normal, res.m_RoomInfo));
            }
        }
Example #2
0
    public override void Open()
    {
        mLoadComplete = false;

        cWorldManager.Instance.Close();

        SceneSwitchMgr.TrySwitch(new RoomSceneSwitch(CreateRoomType.Normal, null));

        //GameMsg_S2C_PrepareRoom msg = new GameMsg_S2C_PrepareRoom();
        //res.m_nScene = 27;
        //res.m_nMusic = 2246;
        //res.m_nMode = 1;
        //res.m_nLevel = 1;
        //res.m_strCheckKey = ;
        //res.m_szStage = null;
        //res.m_CountDownTime = 0;

        //UICoroutine.uiCoroutine.StartCoroutine(DownLoadMatch());

        // coroutine
        //LoadMusic();
        //LoadBgTexture();
    }