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.

23 lines
750 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;
/// <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);
}
}