Files
MinFt/Client/Assets/Scripts/UI/Setting/AppraisePopupPanel.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

76 lines
2.1 KiB
C#

using asap.core;
using GameCore;
using UnityEngine;
using UnityEngine.UI;
public class AppraisePopupPanel : MonoBehaviour
{
Button btn_close;
Button btn_diss;
Button btn_cancel;
Button btn_encourage;
private void Awake()
{
// var config = GContext.container.Resolve<IConfig>(); // tysdk removed - unused
btn_close = transform.Find("btn_close").GetComponent<Button>();
btn_cancel = transform.Find("root/btn_cancel/btn_green").GetComponent<Button>();
btn_diss = transform.Find("root/btn_diss/btn_green").GetComponent<Button>();
btn_encourage = transform.Find("root/btn_encourage/btn_green").GetComponent<Button>();
btn_close.onClick.AddListener(() =>
{
#if AGG
using (var e = GEvent.TackEvent("store_rating"))
{
e.AddContent("select", "close");
}
#endif
Close();
});
btn_cancel.onClick.AddListener(() =>
{
#if AGG
using (var e = GEvent.TackEvent("store_rating"))
{
e.AddContent("select", "close");
}
#endif
Close();
});
btn_diss.onClick.AddListener(() =>
{
#if AGG
using (var e = GEvent.TackEvent("click_support"))
{
e.AddContent("button_position", 2);
}
using (var e = GEvent.TackEvent("store_rating"))
{
e.AddContent("select", "aihelp");
}
#endif
// AIHelp.AIHelpSupport.Show("E001");
Close();
});
btn_encourage.onClick.AddListener(() =>
{
#if AGG
using (var e = GEvent.TackEvent("store_rating"))
{
e.AddContent("select", "rating");
}
#endif
// tysdk removed - app review request disabled
// AppRequestReview.RequestReview(config.Get(GConstant.K_APP_Store_URL, string.Empty));
Close();
});
}
void Close()
{
UIManager.Instance.DestroyUI(UITypes.AppraisePopupPanel);
}
}