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); }
// 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); }
// Start is called before the first frame update void Start() { player = GameObject.Find("Player"); playerDialogHandler = player.GetComponent <PlayerDialogHandler>(); }
private void Start() { playerDialogHandler = GameObject.Find("Player").GetComponent <PlayerDialogHandler>(); pcInventory = GameObject.FindGameObjectWithTag("PCInventory").GetComponent <PcInventory>(); }