Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
 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;
 }