Scriptum/Assets/Scripts/REFACTORING/Application/UI/Task/TaskUIManager.cs
2022-11-06 20:46:25 +01:00

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;
}
}