void BringIn()
 {
     StopAllCoroutines();
     _isWaitBringOut       = false;
     _colorTweener.enabled = true;
     _colorTweener.from    = _from;
     _colorTweener.to      = _to;
     _colorTweener.Reset();
     _nowStatus = ShowStatus.BringIn;
 }
    public static TweenColor ResetTween(TweenColor twn)
    {
        #if USE_UI_NGUI_3
        twn.ResetToBeginning();
        #else
        twn.Reset();
        #endif

        return(twn);
    }
Exemple #3
0
    public override void Show()
    {
        if (!Application.isEditor && !GameConfig.IsMultiMode)
        {
            return;
        }
//		mInputWnd.SetActive(false);
        base.Show();

        mOpBtnCol.Reset();
        mOpBtnCol.enabled = false;
        mListTable.Reposition();
    }
Exemple #4
0
    protected void FadeIn_()
    {
        //lock UI
        TweenColor colorTweener = fadeTexture.GetComponentInChildren <TweenColor>();

        if (colorTweener == null)
        {
            colorTweener = fadeTexture.gameObject.AddComponent <TweenColor>();
        }

        colorTweener.from = new Color(0f, 0f, 0f, 0f);
        colorTweener.to   = fadeColor;

        colorTweener.duration = appearFadeDuration;
        colorTweener.Reset();
        colorTweener.Play(true);
    }