Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Runtime/Scripts/Effects/Gradient2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ List<float> FindStops(float zoomOffset, Rect bounds, List<float> stops)
var startBoundary = zoomOffset - offset;
var endBoundary = (1 - zoomOffset) - offset;

if (_colorKeys == null) _colorKeys = EffectGradient.colorKeys;
_colorKeys = EffectGradient.colorKeys;

foreach (var color in _colorKeys)
{
Expand All @@ -485,7 +485,7 @@ List<float> FindStops(float zoomOffset, Rect bounds, List<float> stops)
stops.Add((color.time - startBoundary) * Zoom);
}

if (_alphaKeys == null) _alphaKeys = _effectGradient.alphaKeys;
_alphaKeys = _effectGradient.alphaKeys;

foreach (var alpha in _alphaKeys)
{
Expand Down
8 changes: 6 additions & 2 deletions Runtime/Scripts/Layout/CardUI/2D Cards/CardPopup2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ void Update()
{
isFalling = false;
rbody.useGravity = false;
rbody.velocity = Vector3.zero;
transform.position = new Vector3(0, 8, startZPos);
#if UNITY_6000_0_OR_NEWER
rbody.linearVelocity = Vector3.zero;
#else
rbody.velocity = Vector3.zero;
#endif
transform.position = new Vector3(0, 8, startZPos);
if (singleScene)
{
CardEnter();
Expand Down
Loading