UnityEngine.GameObject.FindGameObjectWithTag C# (CSharp) Method

FindGameObjectWithTag() public static method

public static FindGameObjectWithTag ( string tag ) : GameObject
tag string
return GameObject
		public static GameObject FindGameObjectWithTag(string tag){}
		public static GameObject FindWithTag(string tag){}

Usage Example

コード例 #1
0
ファイル: LevelManager.cs プロジェクト: Gunnbju/LD44
    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