using System.Collections; using System.Collections.Generic; using UnityEngine; public class PosTrigger : MonoBehaviour { public GameObject[] ShowObj;//要显示的物体 int i; //碰撞执行 public void Perform() { for (i = 0; i < ShowObj.Length; i++) ShowObj[i].SetActive(true); } }