1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2024-12-18 11:55:52 +01:00
MaiDXR/Assets/Scripts/Configs/LightSettingManager.cs

16 lines
316 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LightSettingManager : MonoBehaviour
{
2022-08-19 19:56:13 +02:00
public List<GameObject> Lights;
public void OnStateChanges(bool isOn)
{
foreach (var light in Lights)
{
2022-08-19 19:56:13 +02:00
light.SetActive(isOn);
}
}
}