using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ModelXianShi : MonoBehaviour {
public GameObject[] Modle01; //第一组出现消失模型数组
//每次执行一次,而且先执行
private void Awake()
{
if (Modle01.Length != 0)
{
for (int i = 0; i < Modle01.Length; i++)
{
Modle01[i].gameObject.SetActive(false); //游戏运行,隐藏数组1里面的物体
}
}
}
using System.Collections.Generic;
using UnityEngine;
public class ModelXianShi : MonoBehaviour {
public GameObject[] Modle01; //第一组出现消失模型数组
//每次执行一次,而且先执行
private void Awake()
{
if (Modle01.Length != 0)
{
for (int i = 0; i < Modle01.Length; i++)
{
Modle01[i].gameObject.SetActive(false); //游戏运行,隐藏数组1里面的物体
}
}
}
}