diff --git a/Configs/GameConfig/Datas/GiftConfig.xlsx b/Configs/GameConfig/Datas/GiftConfig.xlsx index 31e442cd..2c65ba31 100644 Binary files a/Configs/GameConfig/Datas/GiftConfig.xlsx and b/Configs/GameConfig/Datas/GiftConfig.xlsx differ diff --git a/UnityProject/Assets/AssetRaw/Configs/bytes/giftconfig_tbgiftconfig.bytes b/UnityProject/Assets/AssetRaw/Configs/bytes/giftconfig_tbgiftconfig.bytes index ca7452ce..6372e977 100644 Binary files a/UnityProject/Assets/AssetRaw/Configs/bytes/giftconfig_tbgiftconfig.bytes and b/UnityProject/Assets/AssetRaw/Configs/bytes/giftconfig_tbgiftconfig.bytes differ diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index 3d3cc020..a9637057 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -289,34 +289,39 @@ namespace GameLogic actorHItem.transform.DOLocalMoveX(0, 4f).OnComplete(async () => { // 显示一下脑袋 - m_rectNao.GetComponent().material.SetFloat("_Alpha", 1); + //m_rectNao.GetComponent().material.SetFloat("_Alpha", 1); + + // 显示一下脑袋 + var naoMat = m_rectNao.GetComponent().material; + //naoMat.SetFloat("_Alpha", 1); - // 进度条0-1之间闪烁3次 + // _Alpha 0~1 闪烁3次 int flashCount = 3; - float flashDuration = 0.12f; // 每次闪烁的时间 + float flashDuration = 1f; // 每次闪烁的时间 Sequence seq = DOTween.Sequence(); for (int i = 0; i < flashCount; i++) { seq.Append(DOTween.To( - () => m_imgValue.fillAmount, - x => m_imgValue.fillAmount = x, + () => naoMat.GetFloat("_Alpha"), + x => naoMat.SetFloat("_Alpha", x), 0f, flashDuration / 2f ).SetEase(Ease.InQuad)); seq.Append(DOTween.To( - () => m_imgValue.fillAmount, - x => m_imgValue.fillAmount = x, + () => naoMat.GetFloat("_Alpha"), + x => naoMat.SetFloat("_Alpha", x), 1f, flashDuration / 2f ).SetEase(Ease.OutQuad)); } - // 最后回到当前进度 + // 最后回到1 seq.Append(DOTween.To( - () => m_imgValue.fillAmount, - x => m_imgValue.fillAmount = x, - m_CurrentFillAmount, 0.18f + () => naoMat.GetFloat("_Alpha"), + x => naoMat.SetFloat("_Alpha", x), + 1f, 0.18f ).SetEase(Ease.OutQuad)); + await UniTask.Delay(2000); // 特效播放完毕后销毁 GameObject.Destroy(actorHItem.gameObject);