27 lines
385 B
C#
27 lines
385 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|