void UPDATEfullbright()
{
if (Input.GetKeyDown(KeyCode.O))
{
this.fullbright = !this.fullbright;
}
}
void ONfullbright()
{
if (fullbright)
{
RenderSettings.ambientLight = new Color(0.95f, 0.95f, 0.95f);
base.ligh*****lor = Color.black;
base.light.intensity = 0f;
}

}
For some reason it won't work.. When I have it on my click gui it works but turns off instantly. Any help appreciated
(Fullbright credits go to BlueBlood1)
(I also created a bool called fullbright)