// 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>(); }
private void Awake() { // Setting up references. m_GroundCheck = transform.Find("GroundCheck"); m_CeilingCheck = transform.Find("CeilingCheck"); m_Anim = GetComponentInChildren <Animator>(); m_Rigidbody2D = GetComponent <Rigidbody2D>(); GOController = GameObject.Find("GameController").GetComponent <GameController>(); camera2DFollow_Script = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera2DFollow>(); systemDialogueMental_Script = GetComponent <SystemDialogueMental>(); mainScript_Canvas = GameObject.Find("_MainCanvas").GetComponent <Canvas_MainScript>(); }
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>(); }