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
@@ -0,0 +1,23 @@
using DG.Tweening;
namespace BallKingdomCrush
{
public static class DOTweenHelper
{
public static void Init()
{
var doTweenInit = DOTween.Init();
doTweenInit?.SetCapacity(1024, 1024);
DOTween.SetTweensCapacity(1024, 1024);
DOTween.defaultEaseType = Ease.Linear;
DOTween.defaultEaseOvershootOrAmplitude = 1.70158f;
DOTween.defaultEasePeriod = 0f;
DOTween.logBehaviour = LogBehaviour.Verbose;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0519ac96dec7c074eb2ab4191049c0e6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,31 @@
using FairyGUI;
namespace BallKingdomCrush
{
public static class FGUIHelper
{
public static void AddFguiTimer(float interval, int repeat, TimerCallback callback, object callbackParam)
{
Timers.inst.Add(interval, repeat, callback, callbackParam);
}
public static string SetGLoaderUrl(GLoader gLoader, string pkgName, string resName)
{
var url = UIPackage.GetItemURL(pkgName, resName);
if (url != null)
{
gLoader.url = url;
}
return url;
}
public static void PlayClickSound()
{
if (UIConfig.buttonSound != null && UIConfig.buttonSound.nativeClip != null)
{
Stage.inst.PlayOneShotSound(UIConfig.buttonSound.nativeClip, UIConfig.buttonSoundVolumeScale);
}
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ed9a746e29efffb49a34ccaa28fad0bd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: