protected virtual void KillEffects()
    {
        if (effects == null)
        {
            return;
        }

        effects.Destory(false);
        effects = null;
    }
Exemple #2
0
    protected virtual void KillEffects()
    {
        Beam?.Destory(true);
        Beam       = null;
        BeamActive = false;

        EndNoHit?.Destory(false);
        EndNoHit = null;

        if (lastGrabbedEntity.IsValid())
        {
            foreach (var child in lastGrabbedEntity.Children.OfType <ModelEntity>())
            {
                child.GlowActive = false;
                child.GlowState  = GlowStates.GlowStateOff;
            }

            lastGrabbedEntity.GlowActive = false;
            lastGrabbedEntity.GlowState  = GlowStates.GlowStateOff;
            lastGrabbedEntity            = null;
        }
    }
Exemple #3
0
    protected override void OnDestroy()
    {
        base.OnDestroy();

        if (AttachJoint.IsValid())
        {
            AttachJoint.Remove();
        }

        if (AttachRope != null)
        {
            AttachRope.Destory(true);
        }
    }
 protected virtual void KillEffects()
 {
     effects?.Destory(false);
     effects = null;
 }