public override void CeaseFire() { if (_weaponCollider == null) { _weaponCollider = GetComponent <MeleeWeaponCollider>(); } _weaponCollider.StopCheck(); }
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(); }
public void CloseAttackBuilding() { _meleeWeaponCollider.StopCheck(); }