protected override void _OnTarget(Gunner target, Vector3 hitPos) { SpaceShipCtrl spaceShip = target as SpaceShipCtrl; if (spaceShip != null) { float rand = Random.Range(0, 1); if (rand <= m_probability) { target.StopFire(m_duration); } } base._OnTarget(target, hitPos); }