UnityEngine.GameObject.FindGameObjectWithTag C# (CSharp) Méthode

FindGameObjectWithTag() public static méthode

public static FindGameObjectWithTag ( string tag ) : GameObject
tag string
Résultat GameObject
		public static GameObject FindGameObjectWithTag(string tag){}
		public static GameObject FindWithTag(string tag){}

Usage Example

Exemple #1
0
    public void GameOver()
    {
        mainCanvas.SetActive(false);
        gameOverCanvas.SetActive(true);

        gameOverCanvas.transform.GetChild(0).gameObject.SetActive(true);
        GameObject.FindGameObjectWithTag("PersistentBoi")?.GetComponent <MusicIntro>()?.KillBGM();

        //Time.timeScale = 0;
    }
All Usage Examples Of UnityEngine.GameObject::FindGameObjectWithTag