提交
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using DG.Tweening;
|
||||
|
||||
namespace BingoBrain.HotFix
|
||||
{
|
||||
public static class Bsaddd
|
||||
{
|
||||
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 Spine;
|
||||
using Spine.Unity;
|
||||
|
||||
namespace BingoBrain.Core
|
||||
{
|
||||
public static class NAAVsa
|
||||
{
|
||||
private const int CurrTrack = 0;
|
||||
|
||||
|
||||
public static TrackEntry PlayAnim(SkeletonAnimation animCom, string animName, bool isLoop)
|
||||
{
|
||||
return animCom.AnimationState.SetAnimation(CurrTrack, animName, isLoop);
|
||||
}
|
||||
|
||||
public static TrackEntry PlayAnim(SkeletonAnimation animCom, string animName)
|
||||
{
|
||||
return animCom.AnimationState.SetAnimation(CurrTrack, animName, false);
|
||||
}
|
||||
|
||||
public static void AddCompleteEvent(SkeletonAnimation animCom, Spine.AnimationState.TrackEntryDelegate func)
|
||||
{
|
||||
animCom.AnimationState.Complete += func;
|
||||
}
|
||||
|
||||
public static void SetSkin(SkeletonAnimation animCom, string skinName)
|
||||
{
|
||||
animCom.Skeleton.SetSkin(skinName);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 860433deff065294bb212e7787207016
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
using FairyGUI;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BingoBrain.Core
|
||||
{
|
||||
|
||||
public static class NNfds
|
||||
{
|
||||
|
||||
|
||||
public static Vector2 WorldToUIPos(GameObject gameObject)
|
||||
{
|
||||
var screenPos = Camera.main.WorldToScreenPoint(gameObject.transform.position);
|
||||
|
||||
screenPos.y = Screen.height - screenPos.y;
|
||||
var fguiPosition = GRoot.inst.GlobalToLocal(screenPos);
|
||||
return fguiPosition;
|
||||
}
|
||||
|
||||
public static bool IsPointerOnUI()
|
||||
{
|
||||
return Stage.isTouchOnUI;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ed9a746e29efffb49a34ccaa28fad0bd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user