1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /****************************
- summary:
- ****************************/
- using QFramework;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class VuforialHint : MonoSingleton<VuforialHint>
- {
- 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);
- }
- }
|