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;
/// <summary>
/// 12.2握手按钮要启用的东西
/// </summary>
public class qianShiAnNiu : MonoBehaviour
{
public GameObject[] gb;
//0为关闭,在方法里要禁用
//1为打开,在方法里要激活
//2为阀门,在方法里(-110,90,-90) 要转为 (-40,90,-90)
//3为拉环,在方法里(-0.3,-0.122,-0.024) 要转为(-0.157,-0.122,-0.024)
//
public void qianShiWoShouAnNiu()
gb[0].SetActive(true);
gb[1].SetActive(false);
gb[2].transform.rotation = Quaternion.Euler(new Vector3(-40, 90, -90));
gb[3].transform.localPosition = new Vector3(-0.157f, -0.122f, -0.024f);
}