Exemplo n.º 1
0
    public void StartState()
    {
        if (DOTween.IsTweening(this))
        {
            DOTween.Kill(this, false);
        }
        Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

        UIInteriorMenuButton[] array = this.mFocasableUIInteriorMenuButtons;
        for (int i = 0; i < array.Length; i++)
        {
            UIInteriorMenuButton uIInteriorMenuButton = array[i];
            uIInteriorMenuButton.get_transform().set_localScale(new Vector3(0f, 0f));
            Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(uIInteriorMenuButton.get_transform(), Vector3.get_one(), 0.25f), 21), this);
            TweenSettingsExtensions.SetDelay <Tween>(tween, 0.075f);
            TweenSettingsExtensions.Join(sequence, tween);
        }
        UIInteriorMenuButton[] array2 = this.mFocasableUIInteriorMenuButtons;
        for (int j = 0; j < array2.Length; j++)
        {
            UIInteriorMenuButton uIInteriorMenuButton2 = array2[j];
            uIInteriorMenuButton2.SetEnableButton(true);
        }
        this.ChangeFocus(this.mFocasableUIInteriorMenuButtons[0], false);
    }