示例#1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     soundManager.PlaySoundAttack();
     if (!playerController2.isPlayerAttack)
     {
         player.playerHp    -= enemyDmg;
         player.hpPoint.text = "" + player.playerHp + "/" + player.playerMaxHp;;
         enemyDmg            = 5;
     }
 }