private void DeleteThisMessage() { TweenUtils.KillAndNull(ref fadeTween); fadeTween = canvasGroup.DOFade(0, FadeDuration).OnComplete(() => { UChatApp.Instance.CurrentChatRoom.DeleteMessageFromRoom(CurrentMessage); fadeTween = null; }); }
private void AnimateAppearanceItem() { TweenUtils.KillAndNull(ref fadeTween); canvasGroup.alpha = 0; fadeTween = canvasGroup.DOFade(1, FadeDuration).OnComplete(() => fadeTween = null); }