ShowInfoForSomeTime
How do I use Show Info For Some Time
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
87 | StopCoroutine("ShowInfoForSomeTime"); | 1 |
91 | IEnumerator ShowInfoForSomeTime() | 2 |
File name: UIgame.cs
Copy
84 public void ShowInformation(string info)
85 {
86 informationText.text = info;
87 StopCoroutine("ShowInfoForSomeTime");
88 StartCoroutine("ShowInfoForSomeTime");
89 }
File name: UIgame.cs
Copy
91 IEnumerator ShowInfoForSomeTime()
92 {
93 informationText.enabled = true;
94 yield return new WaitForSeconds(1);
95 informationText.enabled = false;
96 }
ShowInfoForSomeTime 122 lượt xem
Gõ tìm kiếm nhanh...