Project_WL/Assets/Script/UI/Kettle/KettleCombineUI.cs

28 lines
699 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KettleCombineUI : ScrollViewMgr
{
GameObject go_CombineBtn;
public void Set(GameObject btn)
{
go_CombineBtn = btn;
go_CombineBtn.SetActive(false);
base.Set();
Set_UI(true, false);
}
public void Set_UI(bool _repos, bool _refresh)
{
if (!_refresh)
Set_ScrollView(go_CombineBtn.name.Contains("potion") ? table_kettle.Ins.Get_DataList(eItem.Potion) : table_kettle.Ins.Get_DataList(eItem.Relic), _repos);
}
public override void OnClick_Back()
{
base.OnClick_Back();
go_CombineBtn.SetActive(true);
}
}