NG_/Assets/Scripts/3D/开放实验室/PopLab.cs

27 lines
385 B
C#
Raw Permalink Normal View History

2024-12-13 19:40:05 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// 点击实验室弹窗
public class PopLab : MonoBehaviour
{
public GameObject pop; // 弹窗预制体
public void OnMouseDown()
{
pop.SetActive(pop.activeSelf? false : true);
}
void Start()
{
}
void Update()
{
}
}