Пример #1
0
    void Start()
    {
        uiAnimator = FindUtil.Child <Animator>(this.transform, "Ui");
        scoreText  = FindUtil.Child <TextMeshProUGUI>(this.transform, "Score");
        Init();

        restartButton = FindUtil.Child <CustomButton>(this.transform, "RestartButton");
        restartButton.SetFocusableState(ButtonTransitionStyle.Highlight);
        restartButton.AddToGroup("buttons");
        quitButton = FindUtil.Child <CustomButton>(this.transform, "QuitButton");
        quitButton.SetFocusableState(ButtonTransitionStyle.Highlight);
        quitButton.AddToGroup("buttons");
    }