modify
This commit is contained in:
parent
dad3b33f9e
commit
06dd5148d3
@ -27,7 +27,13 @@ namespace AlicizaX.AnimationFlow.Runtime {
|
|||||||
if (setFrom) {
|
if (setFrom) {
|
||||||
target.alpha = from;
|
target.alpha = from;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Condition())
|
||||||
|
{
|
||||||
|
target.alpha = to;
|
||||||
|
}
|
||||||
enterValue = target.alpha;
|
enterValue = target.alpha;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnUpdate(float dt) {
|
public override void OnUpdate(float dt) {
|
||||||
@ -35,7 +41,7 @@ namespace AlicizaX.AnimationFlow.Runtime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override bool Valid() {
|
public override bool Valid() {
|
||||||
return target != null && duration > 0;
|
return target != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override float Duration() {
|
public override float Duration() {
|
||||||
|
@ -33,6 +33,10 @@ namespace AlicizaX.AnimationFlow.Runtime
|
|||||||
target.color = from;
|
target.color = from;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Condition())
|
||||||
|
{
|
||||||
|
target.color = to;
|
||||||
|
}
|
||||||
enterValue = target.color;
|
enterValue = target.color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +47,7 @@ namespace AlicizaX.AnimationFlow.Runtime
|
|||||||
|
|
||||||
public override bool Valid()
|
public override bool Valid()
|
||||||
{
|
{
|
||||||
return target != null && duration > 0;
|
return target != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override float Duration()
|
public override float Duration()
|
||||||
|
Loading…
Reference in New Issue
Block a user