30 lines
768 B
C#
30 lines
768 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class TaskUIManager : UIBaseManager<Task>
|
|
{
|
|
public const string ITEM_LOCALIZATION = "UiPanels/";
|
|
public const string PANEL_NAME = "TaskPanel";
|
|
|
|
public override void SetupPanel()
|
|
{
|
|
base.SetupPanel();
|
|
|
|
// setup models list
|
|
DynamicPanel.GetComponent<TaskPanelController>().SetUp(Elements);
|
|
}
|
|
|
|
public override void UpdateList()
|
|
{
|
|
DynamicPanel.GetComponent<TaskPanelController>().BuildPanelContent(Elements);
|
|
}
|
|
|
|
protected override GameObject GetTemplatePanel()
|
|
{
|
|
// Resources = default path - Asset/Resources ... .obj
|
|
return Resources.Load(ITEM_LOCALIZATION + PANEL_NAME) as GameObject;
|
|
}
|
|
}
|