void OnMouseDown() { audioManager.Play("switch"); lampOn = !lampOn; if (lampOn) { anim.Play("lampOn"); LM.LightsOn(); } else if (!lampOn) { anim.Play("lampOff"); LM.LightsOff(); } }