private void StopLaserCuttingFX() { sfx_laserLoop.Stop(); if (playerIKTarget != null) { playerIKTarget.enabled = true; } if (fxControl != null && this.fxIsPlaying) { fxControl.StopAndDestroy(0f); fxIsPlaying = false; CancelInvoke("RandomizeIntensity"); fxLight.enabled = false; } }
public void Release() { if (fixedJoint) { JointHelper.Disconnect(fixedJoint, true); fixedJoint = null; } fxControl.StopAndDestroy(0, 1.5f); staticAttached = false; }