Ejemplo n.º 1
0
 //Turn off subprocedure: plays the TurnOff Animation, sets the state to off, and
 // disables the light.
 private void TurnOff()
 {
     audio.Play();
     state = LampSwitch.State.off;
     DragYourLightHere.enabled = false;
     ObjectLists.RemoveItem(lSwitch);
 }
Ejemplo n.º 2
0
 //Turn off subprocedure: plays the TurnOff Animation, sets the state to off, and
 // disables the light.
 private void TurnOff()
 {
     audio.Play();
     GetComponent <Animation>().Play("TurnOffAnimation");
     state = LightSwitch.State.off;
     DragYourLightHere.enabled = false;
     ObjectLists.RemoveItem(lSwitch);
 }