Tz2/Assets/Zion/Scripts/ERP/到货验收/ljj/UI_StampConfirmationManager.cs

51 lines
1.5 KiB
C#

using DefaultNamespace.ProcessMode;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using static InterfaceManager;
/// <summary>
/// 单据盖章确认管理器
/// </summary>
public class UI_StampConfirmationManager : MonoBehaviour
{
public static UI_StampConfirmationManager Instance;
/// <summary>
/// 盖章确认按钮组
/// </summary>
public GameObject Checkobject;
/// <summary>
/// 所有需要盖章的物体
/// </summary>
public List<UI_StampConfirmation> uI_StampConfirmations = new List<UI_StampConfirmation>();
private void Awake()
{
Instance = this;
Checkobject = GameObject.Find("RightClickMenu");
Checkobject.SetActive(false);
}
void Start()
{
}
/// <summary>
/// 单据生成后执行
/// </summary>
public void ExecuteAfterDocumentGeneration()
{
uI_StampConfirmations = FindObjectsOfType<UI_StampConfirmation>(true).ToList();
//for(int i = 0; i < uI_StampConfirmations.Count; i++)
//{
// if (MotionFramework.MotionEngine.GetModule<ProcessManager>()._currentMode == ProcessMode.教学模式)
// {
// GameObject highlightObj = LoadPrefabFromResources("Prefabs/单据/HighlightObj", uI_StampConfirmations[i].transform);
// if (highlightObj != null)
// {
// uI_StampConfirmations[i].HighlightObj = highlightObj;
// }
// }
//}
}
}