欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

UGUI DOTween渐隐渐现

程序员文章站 2022-05-02 20:43:06
...

UGUI DOTween渐隐渐现

Tween tweenAlpha;

tweenAlpha = DOTween.To(() => MaskSpr.fillAmount, x => MaskSpr.fillAmount = x, 1f, RISE_TIME).OnComplete(() =>
					                                                                                                     {
						tweenAlpha = DOTween.ToAlpha(() => MaskSpr.color, x => MaskSpr.color = x, 0f, DISAPPEAR_TIME).OnComplete(() =>
						                                                                                           {
							tweenAlpha = DOTween.ToAlpha(() => MaskSpr.color, x => MaskSpr.color = x, 1f, APPEAR_TIME).OnComplete(() =>{
								State = SelState.done;
							});
						});
					});

posted @ 2016-05-17 10:59 00000000O 阅读(...) 评论(...) 编辑 收藏