Assets.Cha_Data.Script.RitualTactic.HsatkSdogBpass.HeroAnimationCallback C# (CSharp) Method

HeroAnimationCallback() private method

动作播放回调
private HeroAnimationCallback ( string aniName ) : void
aniName string
return void
        private void HeroAnimationCallback(string aniName)
        {
            switch (aniName)
            {
                case "Attack":
                    {
                        break;
                    }
                case "Damage":
                    {
                        double nowHeroSpWidth = this.HeroSpMax.rectTransform.rect.width * heroInfo[Game.MP] / heroInfo[Game.MAX_MP];
                        this.HeroSpNow.rectTransform.sizeDelta =
                            new UnityEngine.Vector2((float)nowHeroSpWidth, this.HeroSpNow.rectTransform.rect.height);
                        HeroMotion.animationPlayOverCallbackEvent -= HeroAnimationCallback;
                        BossMotion.animationPlayOverCallbackEvent -= BossAnimationCallback;

                        animationPlayOverCallbackEvent();
                        break;
                    }
            }
        }