// Use this for initialization void Awake() { scrip_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); thisCanvas = GetComponentInParent <Canvas>(); mainCamera = GameObject.Find("Main Camera").GetComponent <Camera>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); }
private void Awake() { scriptDIAProgress_Controller = GameObject.Find("Player").GetComponent <DIAProgress_Controller>(); scriptPlatformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); scriptAudio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); textNOAHApresentacao.gameObject.SetActive(false); }
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() { Player = GameObject.Find("Player").GetComponent <Transform>(); script_Platformer2DUserControl = Player.GetComponent <Platformer2DUserControl>(); script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); platformer2DCharacter_Script = GameObject.FindGameObjectWithTag("Player").GetComponent <PlatformerCharacter2D>(); }
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 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>(); }
// public NPC1_MainScript scriptMoleke_01; // public NPC1_MainScript scriptMoleke_03; private void Awake() { scriptGameController = GameObject.Find("GameController").GetComponent <GameController>(); scriptPlatformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); scriptSystemDialogueMental = GameObject.Find("Player").GetComponent <SystemDialogueMental>(); scriptSystemDialoguePlayer = GameObject.Find("Player").GetComponent <Baloes_Controller>(); scriptCanvas_MainScript = GameObject.Find("_MainCanvas").GetComponent <Canvas_MainScript>(); // scriptNPC1_MainScript = GameObject.Find("_Robozinho").GetComponent<NPC1_MainScript>(); scriptAudio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); }
// Use this for initialization void Awake() { anin_sprite = GetComponentInChildren <Animator>(); boxC = GetComponent <BoxCollider2D>(); script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); // miniG_PulgasAssassinas = GameObject.Find("MiniG_Boss"); main_Canvas = GameObject.Find("_MainCanvas").GetComponent <Canvas>(); script_FinalizarDia = GameObject.Find("_MainCanvas").GetComponent <finalizar_DIA>(); camera2DFollow_Script = GameObject.Find("Main Camera").GetComponent <Camera2DFollow>(); }
void Awake() { scriptAudio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); g_Player = GameObject.FindGameObjectWithTag("Player"); playerTrans = g_Player.GetComponent <Transform>(); platformer2dcharacter_Script = g_Player.GetComponent <PlatformerCharacter2D>(); GOController = GameObject.Find("GameController").GetComponent <GameController>(); systemDialogueMental_Script = GameObject.FindGameObjectWithTag("Player").GetComponent <SystemDialogueMental>(); camera2Dfollow_Script = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera2DFollow>(); scriptDIAProgress_Controller = GameObject.Find("Player").GetComponent <DIAProgress_Controller>(); trialLogger = GameObject.Find("Save").GetComponent <TrialLogger>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); }
private void Awake() { Letras = GetComponentsInChildren <Text>(); script_random_Char = GetComponentsInChildren <random_Char>(); script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); thisCanvas = GetComponentInParent <Canvas>(); mainCamera = GameObject.Find("Main Camera").GetComponent <Camera>(); toParent = GameObject.Find("toParent"); //img_efeito_minigame = GameObject.Find("img_efeitoMiniGame").GetComponent<Image>(); script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); if (SceneManager.GetActiveScene().name == "Dia_1") { teleportePescola = GameObject.Find("Teleporte(acabandoPuzzle)").GetComponent <Teleporte>(); } //teleporteEscola = GameObject.Find("Teleporte(Escola<->Sala)"); }
// 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>(); }
void Awake() { // (--SCRIPTS--) // script_PLAYER_main_dialogue = GetComponentInParent <PLAYER_main_dialogue>(); script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); // (--HUD--) // canvas_balao_esquerda = GameObject.Find("Canvas_PLAYER_Esquerda").GetComponent <Canvas>(); canvas_balao_esquerda_text = canvas_balao_esquerda.GetComponentInChildren <Text>(); canvas_balao_centro = GameObject.Find("Canvas_PLAYER_Centro").GetComponent <Canvas>(); canvas_balao_centro_text = canvas_balao_centro.GetComponentInChildren <Text>(); canvas_balao_direita = GameObject.Find("Canvas_PLAYER_Direita").GetComponent <Canvas>(); canvas_balao_direita_text = canvas_balao_direita.GetComponentInChildren <Text>(); canvas_Mental = GameObject.Find("Canvas_PLAYER_Mental").GetComponent <Canvas>(); canvas_Mental_text = canvas_Mental.GetComponentInChildren <Text>(); textos_NPCs = GetComponentsInChildren <Text>(); /*canvas_Npc_esquerda_text = canvas_Npc_esquerda.GetComponentInChildren<Text>(); * canvas_Npc_centro_text = canvas_Npc_centro.GetComponentInChildren<Text>(); * canvas_Npc_direita_text = canvas_Npc_direita.GetComponentInChildren<Text>();*/ }
private void Awake() { script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); }
// Use this for initialization void Awake() { script_Audio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); btts_Dialogue_NOAH = muzzle_Inicial_NOAH.GetComponentsInChildren <Button>(); btts_Dialogue_SAM = muzzle_Inicial_SAM.GetComponentsInChildren <Button>(); }
private void Awake() { scriptPlatformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>(); scriptAudio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>(); }