/// <summary> /// Toggles on/off character light /// </summary> public void ToggleCharacterLight() { Light light = GetComponentInChildren <Light> (); if (light != null) { light.enabled = !light.enabled; } env.UpdateLights(); if (light.enabled) { env.ShowMessage("<color=green>Player torch <color=yellow>ON</color></color>"); } else { env.ShowMessage("<color=green>Player torch <color=yellow>OFF</color></color>"); } }