Tz2/Assets/Zion/Scripts/ERP/查询物资采购合同执行状态/PrintForm.cs

34 lines
727 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using static InterfaceManager;
/// <summary>
/// 正确输入后,点击打印按钮,弹出打印预览界面
/// </summary>
public class PrintForm : MonoBehaviour
{
/// <summary>
/// 打印小按钮页面
/// </summary>
public GameObject ShowPrintPanel;
void Start()
{
}
void Update()
{
if (Input.GetKeyDown(KeyCode.Mouse1))
{
if (!ShowPrintPanel.activeInHierarchy)
{
LoadTriggerNextGuide();
ShowPrintPanel.transform.position = Input.mousePosition;
ShowPrintPanel.SetActive(true);
}
}
}
}