/**************************** summary: ****************************/ using QFramework; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class VuforialHint : MonoSingleton { public GameObject vuforiaHint; public Text text; public GameObject SZGBox; private int num = 0; private float time; private void FixedUpdate() { time += Time.deltaTime; num = (int)time; switch (num%4) { case 0: text.text = "等待扫描图片"; break; case 1: text.text = "等待扫描图片."; break; case 2: text.text = "等待扫描图片.."; break; case 3: text.text = "等待扫描图片..."; break; default: break; } } public void Show() { vuforiaHint.SetActive(true); } public void Close() { vuforiaHint.SetActive(false); SZGBox.SetActive(true); } }