yyl
2025-10-23 ecc3785d3b3150173a572e4e6d15fa802cd6a6d2
Main/System/Battle/UIComp/SkillTips.cs
@@ -6,9 +6,9 @@
public class SkillTips : MonoBehaviour
{
    public const float tweenDuration = 1f;
    public const float tweenDuration = 0.5f;
    public const float delayDuration = 0.4f;
    public const float delayDuration = 0.6f;
    public const float beginingX = 400f;
@@ -65,6 +65,11 @@
                seq.OnComplete(() =>
                {
                    tween2 = null;
                    // 恢复图片 alpha,保证下次显示时可见
                    if (imageBg != null) { var cc = imageBg.color; cc.a = 1f; imageBg.color = cc; }
                    if (imgIcon != null) { var cc = imgIcon.color; cc.a = 1f; imgIcon.color = cc; }
                    if (imgSkillName != null) { var cc = imgSkillName.color; cc.a = 1f; imgSkillName.color = cc; }
                    transform.localPosition = isRed ? new Vector3(-beginingX, posY, 0f) : new Vector3(beginingX, posY, 0f);
                    gameObject.SetActive(false);
                });
@@ -94,6 +99,11 @@
            tween3.Kill();
            tween3 = null;
        }
        // 被强制停止时也需要恢复 alpha
        if (imageBg != null) { var cc = imageBg.color; cc.a = 1f; imageBg.color = cc; }
        if (imgIcon != null) { var cc = imgIcon.color; cc.a = 1f; imgIcon.color = cc; }
        if (imgSkillName != null) { var cc = imgSkillName.color; cc.a = 1f; imgSkillName.color = cc; }
    }
}