private void BossAnimationCallback(string aniName)
{
switch (aniName)
{
case "Damage":
{
double nowBossHpWidth = this.BossHpMax.rectTransform.rect.width * bossInfo[Game.HP] / bossInfo[Game.MAX_HP];
this.BossHpNow.rectTransform.sizeDelta =
new UnityEngine.Vector2((float)nowBossHpWidth, this.BossHpNow.rectTransform.rect.height);
HeroMotion.animationPlayOverCallbackEvent -= HeroAnimationCallback;
BossMotion.animationPlayOverCallbackEvent -= BossAnimationCallback;
animationPlayOverCallbackEvent();
break;
}
case "Attack":
{
break;
}
}
}