예제 #1
0
    /// <summary>
    /// 通过ID拿取数据
    /// </summary>
    /// <param name="_id"></param>
    public void OpenDes(int _id)
    {
        DescriptionRef description = ConfigMng.Instance.GetDescriptionRef(_id);

        if (OnDescription != null)
        {
            OnDescription(description);
        }
    }
예제 #2
0
 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");
     }
 }