mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
[BUGFIX] Fixed Material.DOGradientColor not using color property overload correctly
This commit is contained in:
parent
1d20e55fd8
commit
85967318a0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -55,7 +55,7 @@ namespace DG.Tweening
|
|||||||
for (int i = 0; i < len; ++i) {
|
for (int i = 0; i < len; ++i) {
|
||||||
GradientColorKey c = colors[i];
|
GradientColorKey c = colors[i];
|
||||||
if (i == 0 && c.time <= 0) {
|
if (i == 0 && c.time <= 0) {
|
||||||
target.color = c.color;
|
target.SetColor(property, c.color);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
float colorDuration = i == len - 1
|
float colorDuration = i == len - 1
|
||||||
|
|||||||
@ -32,7 +32,7 @@ namespace DG.Tweening
|
|||||||
public class DOTween
|
public class DOTween
|
||||||
{
|
{
|
||||||
/// <summary>DOTween's version</summary>
|
/// <summary>DOTween's version</summary>
|
||||||
public static readonly string Version = "1.2.100"; // Last version before modules: 1.1.755
|
public static readonly string Version = "1.2.105"; // Last version before modules: 1.1.755
|
||||||
|
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
// Options ////////////////////////////////////
|
// Options ////////////////////////////////////
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -55,7 +55,7 @@ namespace DG.Tweening
|
|||||||
for (int i = 0; i < len; ++i) {
|
for (int i = 0; i < len; ++i) {
|
||||||
GradientColorKey c = colors[i];
|
GradientColorKey c = colors[i];
|
||||||
if (i == 0 && c.time <= 0) {
|
if (i == 0 && c.time <= 0) {
|
||||||
target.color = c.color;
|
target.SetColor(property, c.color);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
float colorDuration = i == len - 1
|
float colorDuration = i == len - 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user