Beispiel #1
0
 public override void Fire(Vector3 dir, GameObject cartridge = null)
 {
     if (!_setTheDamage)
     {
         _setTheDamage = true;
         meleeWeaponCollider.sourceWeapon = sourceWeapon.gameObject;
         meleeWeaponCollider.damage       = sourceWeapon.damage;
     }
     if (!_flamePart.isPlaying)
     {
         _flashLight.enabled = true;
         _flamePart.Play();
     }
     meleeWeaponCollider.Check(true);
 }
Beispiel #2
0
    IEnumerator Attack()
    {
        yield return(new WaitForSeconds(0.4f));

        _weaponCollider.Check(false);
    }
Beispiel #3
0
 public void AttackBuilding()
 {
     _meleeWeaponCollider.Check(true);
 }