一、创建一个实现模态窗体的脚本(遮罩面板参考:https://blog.youkuaiyun.com/xiaochenxihua/article/details/81272227)
/***
* Title:"智慧工厂" 项目
* 主题:公共层:UI遮罩管理器
* Description:
* 功能:实现弹出“模态窗体”
* Date:2018
* Version:0.1版本
* Author:Coffee
* Modify Recoder:
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using kernal;
namespace Global
{
public class UIMaskManage : MonoBehaviour
{
public GameObject goTopPlane; //顶层面板
public GameObject goMaskPlane; //遮罩面板
private Camera _U