private void Awake() { script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); player = GameObject.Find("Player").GetComponent <Transform>(); boxC = GetComponent <BoxCollider2D>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); player_canvas = GameObject.Find("CanvasPlayerDialogo").GetComponent <Canvas>(); if (gameObject.name != "_NPCs_(SALADEAULA)_1") { if (gameObject.name != "_NPCs_(SALADEAULA)_2") { if (gameObject.name != "_NPCs_(SALADEAULA)_3") { //img_efeito_minigame = GameObject.Find("img_efeitoMiniGame").GetComponent<Image>(); } } } script_pensamentoController = GameObject.Find("PensamentoController").GetComponent <PensamentoController>(); //Alterações Danilo if (SceneManager.GetActiveScene().name == "Dia_1") { if (GameObject.Find("Teleporte(sala<->escola)") != null) { script_Teleporte = GameObject.Find("Teleporte(sala<->escola)").GetComponent <Teleporte>(); } } //CacaPalavras = GameObject.Find("_Caça-Palavras"); //CacaPalavras2 = GameObject.Find("_Caça-Palavras2"); }
private void Awake() { script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); trans = GetComponent <Transform>(); waypoints = path_Parent.GetComponentsInChildren <WaypointControl>(); pensamentoController_Script = GameObject.Find("PensamentoController").GetComponent <PensamentoController>(); }
// Use this for initialization void Awake() { boxC = GetComponent <BoxCollider2D>(); mental_player_Canvas = GameObject.Find("_CaixaMental"); player_text_mental = GameObject.Find("TextMental").GetComponent <Text>(); script_pensamentoController = GameObject.Find("PensamentoController").GetComponent <PensamentoController>(); main_Sprite = GameObject.Find("imgNoah").GetComponent <Image>(); img_efeito_minigame = GameObject.Find("img_efeitoMiniGame").GetComponent <Image>(); }
// Use this for initialization private void Awake() { script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); textMain = GetComponentInChildren <Text>(); player_canvas = GameObject.Find("CanvasPlayerDialogo").GetComponent <Canvas>(); script_PensamentoController = GameObject.Find("PensamentoController").GetComponent <PensamentoController>(); player_textMain = player_canvas.GetComponentInChildren <Text>(); player_textCaixaMental = caixaMental.GetComponentInChildren <Text>(); }
private void Awake() { platformer2dcontrol_Script = GameObject.FindGameObjectWithTag("Player").GetComponent <Platformer2DUserControl> (); pensamentoController_Script = GameObject.Find("PensamentoController").GetComponent <PensamentoController> (); //pensamentoEstanteLoja_Canvas.SetActive (false); scriptCanvas_MainScript = GameObject.Find("_MainCanvas").GetComponent <Canvas_MainScript>(); dayTime_Morning_IMG = GameObject.FindGameObjectsWithTag("MorningIMG"); dayTime_Afternoon_IMG = GameObject.FindGameObjectsWithTag("AfternoonIMG"); dayTime_Night_IMG = GameObject.FindGameObjectsWithTag("NightIMG"); playerTrans = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); }
private void Awake() { main_Canvas = GameObject.Find("Canvas_" + gameObject.name).GetComponent <Canvas>(); main_Text = main_Canvas.GetComponentInChildren <Text>(); main_Sprite = GameObject.Find("imgNoah").GetComponent <Image>(); player_Canvas = GameObject.Find("CanvasPlayerDialogo").GetComponent <Canvas>(); mental_player_Canvas = GameObject.Find("_CaixaMental"); player_text = player_Canvas.GetComponentInChildren <Text>(); player_text_mental = GameObject.Find("TextMental").GetComponent <Text>(); boxC = GetComponent <BoxCollider2D>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); script_pensamentoController = GameObject.Find("PensamentoController").GetComponent <PensamentoController>(); img_efeito_minigame = GameObject.Find("img_efeitoMiniGame").GetComponent <Image>(); script_Celular_MainScript = GameObject.Find("_Celular_2").GetComponent <Celular_MainScript>(); script_apresentacao_NOAH = GameObject.Find("CONTROLLER_MINE").GetComponent <apresentacao_NOAH>(); }
// Use this for initialization void Awake() { noahComendo_1 = GameObject.Find("Img_noahComendo_Dia1").GetComponent <Image>(); noahComendo_2 = GameObject.Find("Img_noahComendo_Dia2").GetComponent <Image>(); noahComendo_3 = GameObject.Find("Img_noahComendo_Dia3").GetComponent <Image>(); noahMercado = GameObject.Find("Img_noahPapelaria").GetComponent <Image>(); noahPapelaria = GameObject.Find("Img_noahMercado").GetComponent <Image>(); miniCelular = GameObject.Find("MiniCel"); script_PensamentoController = GameObject.Find("PensamentoController").GetComponent <PensamentoController>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); anim = GameObject.Find("_PopUpMensagem").GetComponent <Animator>(); scriptAudio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); array_OBJs_Diario = muzzle_Inicial_Diario.GetComponentsInChildren <Image>(); anin = celular.GetComponent <Animator>(); // Alterações Danilo camera2DFollow_Script = GameObject.Find("Main Camera").GetComponent <Camera2DFollow>(); }
private void Awake() { exclamation_sprite = GameObject.Find("Sprite_" + gameObject.name).GetComponent <SpriteRenderer>(); //main_Canvas = GameObject.Find("Canvas_" + gameObject.name).GetComponent<Canvas>(); //main_Text = main_Canvas.GetComponentInChildren<Text>(); //main_Sprite = GameObject.Find("imgNoah").GetComponent<Image>(); player_Canvas = GameObject.Find("CanvasPlayerDialogo").GetComponent <Canvas>(); //mental_player_Canvas = GameObject.Find("_CaixaMental"); player_text = player_Canvas.GetComponentInChildren <Text>(); //player_text_mental = GameObject.Find("TextMental").GetComponent<Text>(); boxC = GetComponent <BoxCollider2D>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); script_pensamentoController = GameObject.Find("PensamentoController").GetComponent <PensamentoController>(); //img_efeito_minigame = GameObject.Find("img_efeitoMiniGame").GetComponent<Image>(); imgCanetas = GameObject.Find("FPSImg_Estante_Papelaria").GetComponent <Image>(); //script_teleporte = GameObject.Find("Teleporte(Escola<->Sala)").GetComponent<Teleporte>(); script_Celular_MainScript = GameObject.Find("_Celular_2").GetComponent <Celular_MainScript>(); imgCanetas.enabled = false; }
private void Awake() { player_Trans = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform> (); pensamentoController_Script = GameObject.Find("PensamentoController").GetComponent <PensamentoController> (); }