/// <summary> /// 通过ID拿取数据 /// </summary> /// <param name="_id"></param> public void OpenDes(int _id) { DescriptionRef description = ConfigMng.Instance.GetDescriptionRef(_id); if (OnDescription != null) { OnDescription(description); } }
void ShowWnd(DescriptionRef descrip) { if (descrip == null) { return; } if (titleLabel != null) { titleLabel.text = descrip.title; } if (desLabel != null) { desLabel.text = descrip.content.Replace("\\n", "\n"); } }