ball 项目提交

This commit is contained in:
2026-04-20 12:06:34 +08:00
parent 4331ebba60
commit 99145facbd
6052 changed files with 576445 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
using System;
using DG.Tweening;
using FairyGUI;
using BallKingdomCrush;
public static class CommonExpand
{
public static GTweener FadeIn(this GObject obj, float duration = 0.3f, float delay = 0)
{
return CommonHelper.FadeIn(obj, duration, delay);
}
public static GTweener FadeOut(this GObject obj, float duration = 0.3f, float delay = 0)
{
return CommonHelper.FadeOut(obj, duration, delay);
}
public static void SetClick(this GObject button, Action action, bool isNetworkCheck = false,
bool isQuickClickCheck = true)
{
CommonHelper.InitGButton(button, action, isNetworkCheck, isQuickClickCheck);
}
public static void SafeKill(this Tween tween)
{
if (tween != null && tween.IsActive())
{
tween.Kill();
}
}
}