public void UpdateProfile(PacketInfo.pd_LeaderCreatureInfo info, string nickname, int player_level, EventDelegate.Callback _callback = null) { m_LabelNickname.text = nickname; m_LabelPlayerlevel.text = player_level.ToString(); m_SpriteProfile.spriteName = info.GetProfileName(); m_ClickCallback = _callback; }
bool OnToggleCharacter(CreatureInfo hero) { var leader_creature = new PacketInfo.pd_LeaderCreatureInfo { leader_creature_idn = hero.IDN, leader_creature_skin_index = 0 }; Network.Instance.SetLeader(leader_creature); Network.PlayerInfo.leader_creature = leader_creature; GameMain.Instance.UpdatePlayerInfo(); if (m_deleage != null) { m_deleage.Execute(); } Close(); return(true); }
public pd_GuildMemberPlayInfo(pd_GuildMemberPlayInfo info) : base(info as pd_GuildMemberInfo) { player_level = info.player_level; leader_creature = info.leader_creature; is_connected = info.is_connected; }