| | |
| | | [SerializeField] Text m_Category;
|
| | | [SerializeField] TaskFeedbackFunc[] m_Funcs;
|
| | |
|
| | | public static string funcTitle = string.Empty;
|
| | |
|
| | | public static event Action<int> onSelectTask;
|
| | |
|
| | | TaskFeedbackModel model { get { return ModelCenter.Instance.GetModel<TaskFeedbackModel>(); } }
|
| | |
| | |
|
| | | void Display()
|
| | | {
|
| | | m_Category.text = funcTitle;
|
| | | for (int i = 0; i < m_Funcs.Length; i++)
|
| | | {
|
| | | m_Funcs[i].button.gameObject.SetActive(i < model.taskFeedbackFuncs.Count);
|
| | |
| | | if (config != null)
|
| | | {
|
| | | m_Funcs[i].label.text = config.name;
|
| | |
|
| | | if (i == 0)
|
| | | {
|
| | | m_Category.text = config.category;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|