1
0
mirror of synced 2024-12-12 14:31:04 +01:00
WACVR/Assets/Script/Configuration/LightSettingManager.cs
2022-10-03 02:04:54 +02:00

22 lines
474 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LightSettingManager : MonoBehaviour
{
public List<GameObject> Lights;
void Start()
{
ConfigManager.onConfigChanged += ApplyConfig;
ConfigManager.EnsureInitialization();
ApplyConfig();
}
void ApplyConfig()
{
foreach (var light in Lights)
{
light.SetActive(ConfigManager.config.useLight);
}
}
}