using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GameGuide : MonoBehaviour { private string texts = "请根据箭头所指方向去收集能量块"; private float waitTime = 3f; private float timer = 0; private PlayerControl pc; public Text text; // Use this for initialization void Start() { StartCoroutine(tip()); } // Update is called once per frame void Update() { } IEnumerator tip() { yield return new WaitForSeconds(waitTime); text.text = texts; } }