31 lines
781 B
C#
Raw Normal View History

2025-09-08 14:51:28 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using ZXKFramework;
2025-09-08 17:37:12 +08:00
namespace DongWuYiXue.DaoNiaoShu
2025-09-08 14:51:28 +08:00
{
public class StartKaoHePanel : UIBase
{
public override string GroupName => "StartKaoHePanel";
public override string Name => "StartKaoHePanel";
public Action callback;
public override void Init(IUIManager uictrl)
{
base.Init(uictrl);
transform.FindFirst<Button>("startBtn").onClick.AddListener(() => {
SetActive(false);
callback?.Invoke();
});
}
public void StartKaoHe(Action callBack)
{
SetActive(true);
callback = callBack;
}
}
}