void Start()
 {
     dialogues = GameObject.Find("Database").GetComponent <DialogueJSON>();
     imgDeck   = imgDeck.GetComponent <Image>();
     card      = card.GetComponent <Card>();
     animator  = animator.GetComponent <Animator>();
     dice      = GameObject.Find("Dice").GetComponent <Dice>();
 }
    void Start()
    {
        isEnabled = false;
        cardTitle = cardTitle.GetComponent <TextMeshProUGUI>();

        dialogues = GameObject.Find("Database").GetComponent <DialogueJSON>();
        cardsJSON = GameObject.Find("Cards").GetComponent <CardsJSON>();

        game = GameObject.Find("GameControl").GetComponent <GameControl>();

        dice        = GameObject.Find("Dice").GetComponent <Dice>();
        playerImage = GameObject.Find("ActualPlayerImage").GetComponent <PlayerImage>();

        btnTextOption1.GetComponent <TextMeshProUGUI>();
        btnTextOption2.GetComponent <TextMeshProUGUI>();
        btnTextOption3.GetComponent <TextMeshProUGUI>();
        btnTextOption4.GetComponent <TextMeshProUGUI>();

        btnOption1 = btnOption1.GetComponent <Button>();
        btnOption2 = btnOption2.GetComponent <Button>();
        btnOption3 = btnOption3.GetComponent <Button>();
        btnOption4 = btnOption4.GetComponent <Button>();
        btnRA      = btnRA.GetComponent <Button>();
        btnAnswer  = btnOption1;

        btnOption1.enabled  = false;
        btnOption2.enabled  = false;
        btnOption3.enabled  = false;
        btnOption4.enabled  = false;
        btnRA.enabled       = false;
        btnRA.image.enabled = false;
        btnRA.transform.GetChild(0).GetComponent <TextMeshProUGUI>().enabled = false;

        btnOption1.onClick.AddListener(delegate { OnClickButton(btnOption1); });
        btnOption2.onClick.AddListener(delegate { OnClickButton(btnOption2); });
        btnOption3.onClick.AddListener(delegate { OnClickButton(btnOption3); });
        btnOption4.onClick.AddListener(delegate { OnClickButton(btnOption4); });
        btnRA.onClick.AddListener(delegate { OnClickButton(btnRA); });

        imgCard = imgCard.GetComponent <Image>();

        animator = GetComponent <Animator>();
    }
    // Start is called before the first frame update
    void Start()
    {
        playerImage  = GameObject.Find("ActualPlayerImage").GetComponent <Image>();
        playerBorder = playerImage.transform.GetChild(0).GetComponent <Image>();

        dialogueText = playerImage.transform.GetChild(1).transform.GetChild(0).GetComponent <TextMeshProUGUI>();

        player1Images = Resources.LoadAll <Sprite>("Characters/black_hair_guy");
        player2Images = Resources.LoadAll <Sprite>("Characters/redhead_guy");
        player3Images = Resources.LoadAll <Sprite>("Characters/woman_blonde");
        player4Images = Resources.LoadAll <Sprite>("Characters/woman_brunette");

        playerBorders = Resources.LoadAll <Sprite>("Borders/");

        dice = GameObject.Find("Dice").GetComponent <Dice>();

        dialogues = GameObject.Find("Database").GetComponent <DialogueJSON>();

        playerImage.sprite = player1Images[1];
    }