Assets.Cha_Data.Script.RitualTactic.HpassSpassBatk.BossAnimationCallback C# (CSharp) Метод

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

动作播放回调
private BossAnimationCallback ( string aniName ) : void
aniName string
Результат void
        private void BossAnimationCallback(string aniName)
        {
            switch (aniName)
            {
                case "Damage":
                    {
                        break;
                    }
                case "Attack":
                    {
                        double nowBossSpWidth = this.BossSpMax.rectTransform.rect.width * bossInfo[Game.MP] / bossInfo[Game.MAX_MP];
                        this.BossSpNow.rectTransform.sizeDelta =
                            new UnityEngine.Vector2((float)nowBossSpWidth, this.BossSpNow.rectTransform.rect.height);
                        HeroMotion.PlayDamage();
                        BossMotion.PlayWaitLoop();
                        break;
                    }
            }
        }