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.

27 lines
860 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;
using UnityEngine.UI;
/// <summary>
/// 前室拉杆触发的方法12.1
/// </summary>
public class qianShiLaGan : MonoBehaviour
{
public GameObject[] text;
public GameObject[] gb;
//0为关闭在方法里要禁用
//1为打开在方法里要激活
//2为阀门在方法里(-40,90,-90) 要转为 (-110,90,-90)
//3为拉环在方法里-0.157,-0.122,-0.024 要转为(-0.3,-0.122,-0.024
//
public void qianShiLaGanAnNiu()
{
gb[0].SetActive(false);
gb[1].SetActive(true);
gb[2].transform.rotation = Quaternion.Euler(new Vector3(-110,90,-90));
gb[3].transform.localPosition = new Vector3(-0.3f,-0.122f,-0.024f);
text[0].SetActive(false);
text[1].SetActive(true);
}
}