using System.Collections; using System.Collections.Generic; using UnityEngine; public class JianTouButton : MonoBehaviour { Animator ator; public GameObject[] gb;//0是旋转六角需要旋转的东西,1是箭头需要禁用 void Start() { ator = gb[0].GetComponent(); } public void shangJianTou() { ator.SetBool("xuanZhuan",true); gb[1].SetActive(false); } }