yyl
1 天以前 c8863bce7831a4648a39faa69408a888d939cdb4
Main/Component/UI/Common/SkeletonIllusionShadow.cs
@@ -16,7 +16,7 @@
    private bool createSwitch = false;
    private int curFrame = 0;
    private int frameInteral = 2;
    private int frameInteral = 4;
    public void SetSkeletonAnimation(SkeletonAnimation _skeletonAnimation)
    {
@@ -97,11 +97,11 @@
        sa.skeleton.A = skeletonAnimation.skeleton.A;
        // 使用DoTween做alpha淡出,Tween与objTest绑定,便于统一Kill
        DOTween.To(() => sa.skeleton.A, x => { sa.skeleton.A = x; sa.LateUpdate(); }, 0f, 0.5f)
        DOTween.To(() => sa.skeleton.A, x => { sa.skeleton.A = x; sa.LateUpdate(); }, 0f, 1f)
            .SetTarget(objTest);
        // 安全销毁,移除引用
        _ = DestroyIllusionShadowAfterAsync(objTest, 0.5f);
        _ = DestroyIllusionShadowAfterAsync(objTest, 1f);
    }