using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
//日常任务
|
public class SignWin : UIBase
|
{
|
[SerializeField] SignCell[] signCells;
|
|
protected override void OnPreOpen()
|
{
|
SignManager.Instance.OnSignEvent += Display;
|
Display();
|
}
|
|
protected override void OnPreClose()
|
{
|
SignManager.Instance.OnSignEvent -= Display;
|
}
|
|
|
void Display()
|
{
|
for (int i = 0; i < signCells.Length; i++)
|
{
|
signCells[i].Display(i);
|
}
|
}
|
|
}
|
|
|
|
|
|