Beispiel #1
0
 public override void CeaseFire()
 {
     if (_weaponCollider == null)
     {
         _weaponCollider = GetComponent <MeleeWeaponCollider>();
     }
     _weaponCollider.StopCheck();
 }
Beispiel #2
0
 public override void CeaseFire()
 {
     if (_flashLight == null)
     {
         _flashLight = GetComponentInChildren <Light>();
     }
     _flashLight.enabled = false;
     if (_flamePart == null)
     {
         _flamePart = transform.Find("Flame Particles")
                      .GetComponent <ParticleSystem>();
     }
     _flamePart.Stop();
     if (meleeWeaponCollider == null)
     {
         if (_overlapPoint == null)
         {
             _overlapPoint = transform.Find("OverlapPoint");
         }
         meleeWeaponCollider = _overlapPoint.GetComponent <MeleeWeaponCollider>();
     }
     meleeWeaponCollider.StopCheck();
 }
Beispiel #3
0
 public void CloseAttackBuilding()
 {
     _meleeWeaponCollider.StopCheck();
 }