quantum-space-buddies/QSB/Utility/DebugCameraSettings.cs
2021-12-30 13:55:41 +00:00

20 lines
382 B
C#

using UnityEngine;
namespace QSB.Utility
{
internal class DebugCameraSettings : MonoBehaviour
{
void Start()
{
if (QSBCore.GreySkybox)
{
QSBSceneManager.OnSceneLoaded += OnSceneLoaded;
Camera.main.backgroundColor = Color.gray;
}
}
private void OnSceneLoaded(OWScene arg1, OWScene arg2, bool arg3)
=> Camera.main.backgroundColor = Color.gray;
}
}