private void CleanUpCollidedObject() { if (!finished) { //if (lineBem.IsBeamAlive()) { ObjectExitBeamAreaResponse(); } lineBeam.ToggleBeam(); lineBeam.ToggleBeam(); } }
void DestroyBeam() { if (splineCurve != null) { splineCurve.ToggleBeam(); Destroy(splineCurve); } }
//A simple toggle control that allows for the lightbeam to be turned on and off. private void ToggleLight() { lineBeam.ToggleBeam(); if (switchedOn) { WaitForBeamDestruction(); } }
private void DestroyBeam() { splineCurve.ToggleBeam(); Destroy(splineCurve); }