32 lines
659 B
C#
32 lines
659 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 检查接线完好
|
|
/// </summary>
|
|
public class Check_JieXian : PermanentTriggerBase
|
|
{
|
|
/// <summary>
|
|
/// 是否已检查接线完好
|
|
/// </summary>
|
|
public bool isChecked;
|
|
private void OnMouseDown()
|
|
{
|
|
Invoke("Check", 1);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 检查成功
|
|
/// </summary>
|
|
public void Check()
|
|
{
|
|
Debug.Log("接线完好");
|
|
isChecked = true;
|
|
gameObject.SetActive(false);
|
|
|
|
if (GameManager.ProcessMgr != null)
|
|
GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, true);
|
|
}
|
|
}
|