示例#1
0
 protected void Flash(FlashInfo flashInfo, Action postAction)
 {
     Curve.Tween(flashInfo.Curve,
                 flashInfo.Duration,
                 t => { _coverImage.color = Color.Lerp(flashInfo.StartColor, flashInfo.EndColor, t); },
                 () =>
     {
         _coverImage.color = flashInfo.EndColor;
         postAction?.Invoke();
     });
 }
示例#2
0
 protected void Flash(FlashInfo flashInfo)
 {
     Flash(flashInfo, null);
 }