using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ImageT : MonoBehaviour
{
public GameObject[] Imagett;
private float m_timer;
// Use this for initialization
void Start()
{
Imagett[0].SetActive(true);
}
// Update is called once per frame
void Update()
{
m_timer += Time.deltaTime;
if (m_timer >= 10)
{
int a = Random.Range(0, 5);
// Debug.Log("显示" + a);
for (int i = 0; i < Imagett.Length; i++)
{
if (Imagett[i].activeSelf)
{
Imagett[i].SetActive(false);
}
}
Imagett[a].SetActive(true);
m_timer = 0;
}
}
public void OffTe()
{
}
}