Пример #1
0
    private void Start()
    {
        puse                = GameObject.FindGameObjectWithTag("PousePannel").GetComponent <Puse>();
        playerInventory     = GameObject.Find("PlayerInventory").GetComponent <PlayerInventory>();
        randomMonsterPicker = GameObject.Find("RandomMonsterPicker").GetComponent <RandomMonsterPicker>();
        player              = GameObject.Find("Player").GetComponent <FirstPersonController>();
        playerDialogHandler = GameObject.Find("Player").GetComponent <PlayerDialogHandler>();

        pcPanel.SetActive(false);
        monsterPanel2.SetActive(false);
    }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player");

        // Init dialog handler
        PlayerDialogHandler handler = player.GetComponentInChildren <PlayerDialogHandler>();

        handler.textbox   = textbox;
        handler.textboxBg = textboxBg;
        handler.choiceBox = choiceBox;
        handler.choiceBg  = choiceBg;
        handler.enabled   = true;
        handler.Init();

        if (questNotify)
        {
            GameObject.Find("PlayerInventory").GetComponent <PlayerInventory>().questNotify = questNotify;
        }

        Destroy(gameObject);
    }
Пример #3
0
 // Start is called before the first frame update
 void Start()
 {
     player = GameObject.Find("Player");
     playerDialogHandler = player.GetComponent <PlayerDialogHandler>();
 }
Пример #4
0
 private void Start()
 {
     playerDialogHandler = GameObject.Find("Player").GetComponent <PlayerDialogHandler>();
     pcInventory         = GameObject.FindGameObjectWithTag("PCInventory").GetComponent <PcInventory>();
 }