// Start is called before the first frame update void Start() { dialog = DialogPiece.ParseDialog(dialogText.text); GameObject dialogBoxObj = GameObject.FindWithTag("DialogBox"); dialogBox = dialogBoxObj.GetComponent <DialogBox>(); }
private void Start() { button = GetComponent <Button>(); theDialog = DialogPiece.ParseDialog(dialogFile.text); }