Exemplo n.º 1
0
    public GetRoleInfoNotification(RoleSelectPanel roleSelectPanel)
    {
        _roleSelectPanel = roleSelectPanel;

        _id       = Constant.NOTIFICATION_TYPE_PLAYER;
        _typeList = new int[] { (int)PlayerNotificationType.GetRoleInfoSuccess, (int)PlayerNotificationType.GetRoleInfoFailed };
    }
Exemplo n.º 2
0
    public void Init(RoleSelectPanel parent, Data.RoleInfoLite roleInfoLite)
    {
        _parent       = parent;
        _roleInfoLite = roleInfoLite;

        var serverInfo = parent.GetServerInfo(_roleInfoLite.serverId);

        roleInfoText.text = string.Format("{0} {1}({3})", _roleInfoLite.roleName, _roleInfoLite.roleLevel, _roleInfoLite, serverInfo.serverName);
    }