RiZhiItem.cs 629 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using LitJson;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class RiZhiItem : MonoBehaviour
  7. {
  8. public Text date;
  9. public Text level;
  10. public Text account;
  11. public Text type;
  12. public Text result;
  13. public Text desc;
  14. public void init(JsonData data)
  15. {
  16. date.text = data["date"].ToString();
  17. level.text = data["level"].ToString();
  18. account.text = data["account"].ToString();
  19. type.text = data["type"].ToString();
  20. result.text = data["result"].ToString();
  21. desc.text = data["desc"].ToString();
  22. }
  23. }