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); } }