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); }
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(角色名称为空)!"); } }