Exemple #1
0
        protected void G2C_GameStartInfo(IIncommingMessage reader)
        {
            var msg = reader.Parse <Msg_G2C_GameStartInfo>();

            Log("G2C_GameStartInfo " + msg);
            HasRecvGameDta = true;
            GameStartInfo  = msg;
            _handler.OnGameStartInfo(msg);
        }
        protected void G2C_GameStartInfo(object reader)
        {
            Msg_G2C_GameStartInfo msg_G2C_GameStartInfo = reader as Msg_G2C_GameStartInfo;

            HasRecvGameDta = true;
            GameStartInfo  = msg_G2C_GameStartInfo;
            _handler.OnGameStartInfo(msg_G2C_GameStartInfo);
            HasConnGameTcp   = true;
            HasConnGameUdp   = true;
            CurGameState     = EGameState.Loading;
            _curLoadProgress = 1f;
            EventHelper.Trigger(EEvent.OnGameCreate, msg_G2C_GameStartInfo);
            Debug.Log("G2C_GameStartInfo", Array.Empty <object>());
        }
        protected void G2C_GameStartInfo(object reader)
        {
            var msg = reader as Msg_G2C_GameStartInfo;

            HasRecvGameDta = true;
            GameStartInfo  = msg;
            _handler.OnGameStartInfo(msg);
            //TODO temp code
            HasConnGameTcp   = true;
            HasConnGameUdp   = true;
            CurGameState     = EGameState.Loading;
            _curLoadProgress = 1;
            EventHelper.Trigger(EEvent.OnGameCreate, msg);
            Debug.Log("G2C_GameStartInfo");
        }