Esempio n. 1
0
    void Awake()
    {
        DontDestroyOnLoad(transform.gameObject);
        stgRef_Setup();

        tDialogueCanvas    = GameObject.FindGameObjectWithTag("testerCanvas");
        dDictionaryArchive = tDialogueCanvas.GetComponent <DictionaryConverter> ();
        dlgManager         = GameObject.FindGameObjectWithTag("DialogueManager");
        dlgInterface       = dlgManager.GetComponent <DialogueManager> ();

        Player      = GameObject.FindGameObjectWithTag("User");
        playerView  = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera> ();
        movementRef = Player.GetComponent <PlayerController> ();
        Prompter    = GameObject.FindGameObjectWithTag("tBox");

        assignPrmptCanvas();

        cellarLight = Player.GetComponentInChildren <LightsScript> ();
        ftTimer     = GameObject.FindGameObjectWithTag("ftTimer");
        ftTimer.SetActive(false);

        PvERef = Player.GetComponent <PlayerCombat> ();

        qStatus = Player.GetComponent <playerStatusLog> ();
        qStatus.qPhaseSet(stgRef);
        canContinue = false;
    }