Skip to content

Commit 2ac0711

Browse files
committed
refactor(visualizer): increased fade time of active nodes
1 parent ea412b8 commit 2ac0711

File tree

1 file changed

+3
-3
lines changed
  • Assets/FluidBehaviorTree/Editor/BehaviorTree/Printer/Graphics

1 file changed

+3
-3
lines changed

Assets/FluidBehaviorTree/Editor/BehaviorTree/Printer/Graphics/ColorFader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CleverCrow.Fluid.BTs.Trees.Editors {
44
public class ColorFader {
5-
const float FADE_DURATION = 0.5f;
5+
const float FADE_DURATION = 0.8f;
66

77
private float _fadeTime;
88
private readonly Color _startColor;
@@ -24,8 +24,8 @@ public void Update (bool reset) {
2424
}
2525

2626
CurrentColor = Color.Lerp(
27-
_startColor,
28-
_endColor,
27+
_startColor,
28+
_endColor,
2929
_fadeTime / FADE_DURATION);
3030
}
3131
}

0 commit comments

Comments
 (0)