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

        return(twn);
    }
コード例 #3
0
ファイル: ChatGUI_N.cs プロジェクト: shrubba/planetexplorers
    public override void Show()
    {
        if (!Application.isEditor && !GameConfig.IsMultiMode)
        {
            return;
        }
//		mInputWnd.SetActive(false);
        base.Show();

        mOpBtnCol.Reset();
        mOpBtnCol.enabled = false;
        mListTable.Reposition();
    }
コード例 #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);
    }