You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
850 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class liuJiaoButton : MonoBehaviour
{
/// <summary>
/// 如果手动旋转按钮打开,并且运行指示灯为白,并且选中了六角扳手,则触发确定事件
/// </summary>
public GameObject[] gb;//0为手动旋转按钮旋转按钮物体为隐藏触发1为运行指示灯为白绿灯贴图1物体为隐藏触发2为选中了六角扳手Image2为活跃的
public GameObject[] gbOn;//0为黄色题头(房间放大镜打开页面里的image)需打开1为两个红色按钮需打开
public void QueDingButton()
{
if (!gb[0].activeSelf&&!gb[1].activeSelf&&gb[2].activeSelf)
{
gbOn[0].SetActive(true);
gbOn[1].SetActive(true);
}
}
}