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