using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// 检查接线完好
///
public class Check_JieXian : PermanentTriggerBase
{
///
/// 是否已检查接线完好
///
public bool isChecked;
private void OnMouseDown()
{
Invoke("Check", 1);
}
///
/// 检查成功
///
public void Check()
{
Debug.Log("接线完好");
isChecked = true;
gameObject.SetActive(false);
if (GameManager.UIMgr != null)
{
GameObject tip2 = Instantiate(Resources.Load("UI/UI_Tip/TipPanel"), UIManager.Instance.canvas.transform);
TipPanel tipPanel = tip2.GetComponent();
tipPanel.Init("接线完好!");
}
if (GameManager.ProcessMgr != null)
GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, true);
}
}