mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2024-12-14 02:22:51 +01:00
16 lines
310 B
C#
16 lines
310 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class LightSettingManager : MonoBehaviour
|
||
|
{
|
||
|
public List<Light> Lights;
|
||
|
public void OnStateChanges(bool isOn)
|
||
|
{
|
||
|
foreach (var light in Lights)
|
||
|
{
|
||
|
light.enabled = isOn;
|
||
|
}
|
||
|
}
|
||
|
}
|