Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        public void Release()
        {
            if (fixedJoint)
            {
                JointHelper.Disconnect(fixedJoint, true);
                fixedJoint = null;
            }

            fxControl.StopAndDestroy(0, 1.5f);

            staticAttached = false;
        }