1234567891011121314151617181920212223242526272829303132 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class B08_EventListItem : MonoBehaviour
- {
- public B08_TaskData data;
-
- public Text nameText;
- public Text dateText;
- public Text managerText;
- public Text stateText;
- public Text ctrlText;
- public void Init(B08_TaskData _data)
- {
- data = _data;
- nameText = this.transform.Find("name").GetComponent<Text>();
- dateText = this.transform.Find("date").GetComponent<Text>();
- managerText = this.transform.Find("principal").GetComponent<Text>();
- stateText = this.transform.Find("state").GetComponent<Text>();
- ctrlText = this.transform.Find("ctrl").GetComponent<Text>();
- nameText.text = data.title;
- dateText.text = data.updateTime;
- managerText.text = data.transactorName;
-
- }
- }
|