Fix deprecation and other warnings

This commit is contained in:
Michal Pikulski
2025-11-10 23:18:01 +01:00
parent a049c6a750
commit 961da5e729
14 changed files with 16 additions and 48 deletions

View File

@@ -41,7 +41,6 @@ namespace UI.CardSystem
// State
private bool _isFlipped = false;
private bool _isFlipping = false;
private bool _isHovering = false;
private TweenBase _idleHoverTween;
private CardData _cardData;
private Vector2 _originalPosition; // Track original spawn position
@@ -242,8 +241,6 @@ namespace UI.CardSystem
if (_isFlipped || _isFlipping)
return;
_isHovering = true;
// Scale up slightly on hover
Tween.LocalScale(transform, Vector3.one * hoverScaleMultiplier, 0.2f, 0f, Tween.EaseOutBack);
}
@@ -253,8 +250,6 @@ namespace UI.CardSystem
if (_isFlipped || _isFlipping)
return;
_isHovering = false;
// Scale back to normal
Tween.LocalScale(transform, Vector3.one, 0.2f, 0f, Tween.EaseOutBack);
}