32 lines
745 B
C#
32 lines
745 B
C#
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class GetItemUI : MonoBehaviourSingletonTemplate<GetItemUI>
|
||
|
|
{
|
||
|
|
public GameObject go_tabtoscreen;
|
||
|
|
public GetItemUI_Scroll m_GetItemUI_Scroll;
|
||
|
|
|
||
|
|
public void Set(ItemSimpleData item)
|
||
|
|
{
|
||
|
|
Set_Common();
|
||
|
|
m_GetItemUI_Scroll.Set(new List<ItemSimpleData> { item });
|
||
|
|
}
|
||
|
|
public void Set(List<ItemSimpleData> lst)
|
||
|
|
{
|
||
|
|
Set_Common();
|
||
|
|
m_GetItemUI_Scroll.Set(lst);
|
||
|
|
}
|
||
|
|
|
||
|
|
void Set_Common()
|
||
|
|
{
|
||
|
|
On();
|
||
|
|
go_tabtoscreen.SetActive(false);
|
||
|
|
Set_Coroutine(() => { go_tabtoscreen.SetActive(true); }, 1f);
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void Off()
|
||
|
|
{
|
||
|
|
if (go_tabtoscreen.activeInHierarchy)
|
||
|
|
base.Off();
|
||
|
|
}
|
||
|
|
}
|