Assets.Cha_Data.Script.RitualTactic.HatkSpassBpass.HeroAnimationCallback C# (CSharp) Метод

HeroAnimationCallback() приватный Метод

动作播放回调
private HeroAnimationCallback ( string aniName ) : void
aniName string
Результат void
        private void HeroAnimationCallback(string aniName)
        {
            switch (aniName)
            {
                case "Attack":
                    {
                        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);

                        BossMotion.PlayDamage();
                        HeroMotion.PlayWaitLoop();
                        break;
                    }
                case "Damage":
                    {
                        break;
                    }
            }
        }