void Start() { gameObject.tag = "GameController"; GravityController = transform.GetChild(1).transform.GetComponent <GravityControllerScript>(); FreezeCarsor = transform.GetChild(2).transform.GetComponent <FreezeCarsorScript>(); uIController = FreezeCarsor.transform.root.GetChild(0).GetComponent <UIController>(); if (GameObject.FindWithTag("AllScene")) { sceneManagerScript = GameObject.FindWithTag("AllScene").GetComponent <SceneManagerScript>(); SetHidetime = sceneManagerScript.GethideUItime(); } }