Esempio n. 1
0
    void Start()
    {
        _letterSlotText       = LetterSlotsHolder.GetComponentsInChildren <TextMeshProUGUI>();
        _inputManangerScript  = GetComponent <InputMananger_Script>();
        _gallowManangerScript = GetComponent <GallowMananger_Script>();
        _scoreManangerScript  = GetComponent <ScoreMananger_Script>();
        _gameManangerScript   = GetComponent <GameMananger_Script>();

        foreach (TextMeshProUGUI t in _letterSlotText)
        {
            t.transform.parent.gameObject.SetActive(false);
        }
        //ChooseWord();
    }
 void Start()
 {
     _gameOverTitleText   = GameOverGO.transform.GetChild(1).GetComponent <TextMeshProUGUI>();
     _gameOverText        = GameOverGO.transform.GetChild(2).GetComponent <TextMeshProUGUI>();
     _scoreText           = GameOverGO.transform.GetChild(3).GetComponent <TextMeshProUGUI>();
     _getWordScript       = GetComponent <GetWord_Script>();
     _wordAdded           = CategoryUIGO.GetComponentInChildren <ScaleOut_Script>();
     _wordImportScript    = GetComponent <WordImport_Script>();
     _wordCountText       = CategoryUIGO.transform.GetChild(8).GetComponent <TextMeshProUGUI>();
     _scoreManangerScript = GetComponent <ScoreMananger_Script>();
     _newWordButton       = GameOverGO.transform.GetChild(4).GetChild(1).GetComponent <Button>();
     _inputManangerScript = GetComponent <InputMananger_Script>();
     GameOverGO.SetActive(false);
     MainGameUIGO.SetActive(false);
     CategoryUIGO.SetActive(true);
     ToggleHard();
     UpdateWordCountText(0);
 }