示例#1
0
 public void BasicSwing()
 {
     if (!target)
     {
         return;
     }
     if (!enemyWeapon)
     {
         return;
     }
     enemyWeapon.DoAttack(damage, contactForce, gameObject);
     PlayeQueuedSound();
     //enemyWeapon.QueueSoundClip(audioSource, queuedAudioClip);
     //PlayeQueuedSound();
 }
示例#2
0
 public void DoAttack()
 {
     weapon.DoAttack();
 }