Esempio n. 1
0
    // 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>();
    }
Esempio n. 2
0
 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>();
 }
Esempio n. 3
0
    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>();
    }