NG_/Assets/Scripts/UI/设备运维/SheBeiQiTing.cs

18 lines
403 B
C#
Raw Normal View History

2024-12-13 19:40:05 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
public class SheBeiQiTing : MonoBehaviour
{
// 灯光启动按钮
public GameObject lightBtn;
public Light light;
// Start is called before the first frame update
private void OnEnable()
{
light.gameObject.SetActive(!lightBtn.activeSelf);
}
}