public static void NextLightMode() { ++Lighting.Mode; if (!Enum.IsDefined(typeof(LightMode), (object)Lighting.Mode)) { Lighting.Mode = LightMode.White; } Lighting.Clear(); }