B08_EventListItem.cs 890 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class B08_EventListItem : MonoBehaviour
  6. {
  7. public B08_TaskData data;
  8. public Text nameText;
  9. public Text dateText;
  10. public Text managerText;
  11. public Text stateText;
  12. public Text ctrlText;
  13. public void Init(B08_TaskData _data)
  14. {
  15. data = _data;
  16. nameText = this.transform.Find("name").GetComponent<Text>();
  17. dateText = this.transform.Find("date").GetComponent<Text>();
  18. managerText = this.transform.Find("principal").GetComponent<Text>();
  19. stateText = this.transform.Find("state").GetComponent<Text>();
  20. ctrlText = this.transform.Find("ctrl").GetComponent<Text>();
  21. nameText.text = data.title;
  22. dateText.text = data.updateTime;
  23. managerText.text = data.transactorName;
  24. }
  25. }