Exemple #1
0
        public void reqCreateAvatar(IKBEvent eventData)
        {
            KBS_CreateAvatar data = (KBS_CreateAvatar)eventData;

            Dbg.DEBUG_MSG("Account::reqCreateAvatar: roleType=" + data.roleType);
            baseCall("reqCreateAvatar", data.roleType, data.name);
        }
Exemple #2
0
    public void CreateAvatar()
    {
        string sAvatarName = mAvatarNameText.text;

        if (sAvatarName.Length > 1)
        {
            KBS_CreateAvatar e = new KBS_CreateAvatar();
            e.roleType = (Byte)1;
            e.name     = sAvatarName;
            KBEvent.fireIn(KET.reqCreateAvatar, e);

            UIStatus = MainUIStatus.SelAvatarUI;
        }
        else
        {
            err("avatar name is null(角色名称为空)!");
        }
    }