示例#1
0
 public void TakeDamage()
 {
     state.TakeDamage();
     if (!isDead)
     {
         SoundManager.shrink.Play();
         invicibilityFrames = ValueHolder.maxInvinciblityTime;
     }
     if (isNinja)
     {
         SoundManager.PlaySong(SoundManager.songs.overworld);
     }
     isFireball = false;
     isBig      = false;
     isFire     = false;
     isNinja    = false;
 }