1
0
mirror of synced 2024-12-18 09:15:54 +01:00
WACVR/Assets/Script/Configuration/LightSettingManager.cs

19 lines
423 B
C#
Raw Normal View History

2022-10-03 02:04:54 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LightSettingManager : MonoBehaviour
{
public GameObject LightManager;
2022-10-03 02:04:54 +02:00
void Start()
{
ConfigManager.onConfigChanged += ApplyConfig;
ConfigManager.EnsureInitialization();
ApplyConfig();
}
void ApplyConfig()
{
LightManager.SetActive(ConfigManager.config.useLight);
2022-10-03 02:04:54 +02:00
}
}