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(); }); }
protected void Flash(FlashInfo flashInfo) { Flash(flashInfo, null); }