Пример #1
0
    public void ResetData()
    {
        countDownShakeController.ResetData();
        if (actionCountDown != null)
        {
            StopCoroutine(actionCountDown);
            actionCountDown = null;
        }
        if (actionCheckViewAds != null)
        {
            StopCoroutine(actionCheckViewAds);
            actionCheckViewAds = null;
        }

        LeanTween.cancel(txtGetGold_Small.gameObject);
        LeanTween.cancel(txtGetGold_Large.gameObject);
        LeanTween.cancel(txtCountDown.gameObject);

        tweenScaleTxtCountDown = null;
        tweenColorTxtCountDown = null;
        tweenHighlight         = null;

        txtCountDown.rectTransform.rotation   = Quaternion.identity;
        txtCountDown.rectTransform.localScale = Vector3.one;
        txtCountDown.color = Color.black;
    }
Пример #2
0
    public override void ResetData()
    {
        StopAllCoroutines();
        actionCountDown    = null;
        actionCheckViewAds = null;

        myCanvasGroup.alpha          = 0f;
        myCanvasGroup.blocksRaycasts = false;

        panelFocusScreen.gameObject.SetActive(false);

        txtCountDown.rectTransform.rotation   = Quaternion.identity;
        txtCountDown.rectTransform.localScale = Vector3.one;
        txtCountDown.color = Color.black;
        countDownShakeController.ResetData();

        if (listPanelReward != null)
        {
            listPanelReward.ClearAllObjectsNow();
        }
        txtEmpty.gameObject.SetActive(false);
    }