Пример #1
0
 //충돌 처리.
 private void OnTriggerEnter(Collider other)
 {
     Destroy();
     if (weaponInfo.attackType == Def.DefEnum.AttackType.SINGLE)
     {
         InteractiveObject obj = other.GetComponent <InteractiveObject>();
         if (obj != null)
         {
             obj.Attacked(GetAttackValue());
             SoundManager.Instance.PlaySound(weaponInfo.hitSFXPath);
         }
     }
 }