24 lines
597 B
C#
24 lines
597 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
/// <summary>
|
|
/// 在启动时隐藏物体
|
|
/// </summary>
|
|
public class DisAtShow : MonoBehaviour
|
|
{
|
|
public GameObject[] DisObjs;
|
|
public Text[] Text_Clear;
|
|
public InputField[] In_Clear;
|
|
int i;
|
|
void OnEnable()
|
|
{
|
|
for (i = 0; i < DisObjs.Length; i++)
|
|
DisObjs[i].SetActive(false);
|
|
for (i = 0; i < Text_Clear.Length; i++)
|
|
Text_Clear[i].text = "";
|
|
for (i = 0; i < In_Clear.Length; i++)
|
|
In_Clear[i].text = "";
|
|
}
|
|
}
|