Beispiel #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;
    }
Beispiel #2
0
    //[PROGRAMMER] nQ's Script [PROGRAMMER] Start
    void Awake()
    {
        //Assignment of pStatus
        Messenger <bool, int> .AddListener("MnPackAssignment", runQPack_Mn);

        pStatus = Player.GetComponent <playerStatusLog> ();
        //Create/Fill List of Quests
        StartCoroutine(compileQList());
        //Get Quest-wide NPCs
        foreach (GameObject npc in questNPCs)
        {
            NPC_AIs.Add(npc.GetComponent <questAI> ());
        }
        //Distribute desired quest's attribute
        StartCoroutine(distributeQ());

        //**TEMPORARY TESTER**
        //runQPack_Mn (true, 1);
    }