protected override void ReverseAnimations(bool hasCallback = false) { base.ReverseAnimations(hasCallback); System.Action callback = null; if (hasCallback) { callback = CompletedTextAnimations; } PositionTextAnim.Stop(); PositionTextAnim.Reverse(callback); PointsTextAnim.Stop(); PointsTextAnim.Reverse(callback); }
protected override void PlayAnimations(bool hasCallback) { base.PlayAnimations(hasCallback); System.Action callback = null; if (hasCallback) { callback = CompletedTextAnimations; } PositionTextAnim.Stop(); PositionTextAnim.Play(callback); PointsTextAnim.Stop(); PointsTextAnim.Play(callback); }