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