Пример #1
0
        void OnLogin(IoBuffer s)
        {
            bool ret = s.ReadBool();

            Debuger.LogError("登录{0}", ret ? "成功" : "失败");
            m_hero = new TestRole();
            m_hero.Init();

            bool needDeserialize = s.ReadBool();

            if (needDeserialize)
            {
                m_hero.Deserialize(s);
            }
        }
Пример #2
0
        void OnTaskGetReward(IoBuffer s)
        {
            bool ret = s.ReadBool();

            Debuger.LogError("领取奖励{0}", ret ? "成功" : "失败");
        }
Пример #3
0
        void OnLevelFight(IoBuffer s)
        {
            bool ret = s.ReadBool();

            Debuger.LogError("关卡挑战{0}", ret?"成功":"失败");
        }
Пример #4
0
        void OnRename(IoBuffer s)
        {
            bool ret = s.ReadBool();

            Debuger.LogError("重命名{0}", ret ? "成功" : "失败");
        }