StopWarning
How do I use Stop Warning
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
34 | public void StopWarning(){ | 1 |
164 |
warningText.transform.GetComponent |
2 |
File name: WarningText.cs
Copy
34 public void StopWarning(){
35 if(audioSource.isPlaying){
36 audioSource.Stop ();
37 }
38 }
File name: GameplayController.cs
Copy
159 IEnumerator SpawnBossTime(){
160 warningText.gameObject.SetActive (true);
161 warningText.transform.GetComponent
162 yield return new WaitForSeconds (5f);
163 warningText.gameObject.SetActive (false);
164 warningText.transform.GetComponent
165 GameObject.FindGameObjectWithTag ("Spawner").transform.GetComponent
166 }
StopWarning 105 lượt xem
Gõ tìm kiếm nhanh...