void Awake() { scriptHighScore = GameObject.Find("GerenciadorGlobal(Clone)").gameObject.GetComponent <scrHighScore>(); scriptHighScore2 = GameObject.Find("GerenciadorGlobal(Clone)").gameObject.GetComponent <scrHighScore2>(); scriptGerenciaSons = GameObject.Find("GerenciadorGlobal(Clone)").gameObject.GetComponent <scrGerenciadorSons>(); scriptHighScore.GetMenuReferences(); scriptHighScore.GradeResults(); scriptHighScore2.GetMenuReferences(); scriptHighScore2.GradeResults(); }
void Awake() { animPlayer = gameObject.GetComponent <Animator>(); scriptPlayer = gameObject.GetComponent <Player>(); scriptPontuacao = GameObject.Find("Gerenciador").gameObject.GetComponent <scrpontuacao>(); scriptHighScore = GameObject.Find("GerenciadorGlobal(Clone)").gameObject.GetComponent <scrHighScore>(); scriptHighScore.GetSceneReferences(); scriptHighScore2 = GameObject.Find("GerenciadorGlobal(Clone)").gameObject.GetComponent <scrHighScore2>(); scriptHighScore2.GetSceneReferences(); scriptGerenciaSons = GameObject.Find("GerenciadorGlobal(Clone)").gameObject.GetComponent <scrGerenciadorSons>(); }
// Start is called before the first frame update void Start() { scriptHighScore = GameObject.Find("GerenciadorGlobal(Clone)").gameObject.GetComponent <scrHighScore>(); }