We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f429d91 commit a62e734Copy full SHA for a62e734
Assets/FluidBehaviorTree/Editor/Testing/Decorators/DecoratorTest.cs
@@ -33,7 +33,7 @@ public void Returns_false_if_child_is_disabled () {
33
var decorator = new DecoratorExample { child = A.TaskStub().Build() };
34
decorator.child.Enabled.Returns(false);
35
36
- Assert.IsTrue(decorator.Enabled);
+ Assert.IsFalse(decorator.Enabled);
37
}
38
39
[Test]
Assets/FluidBehaviorTree/Scripts/TaskParents/Decorators/DecoratorBase.cs
@@ -6,7 +6,7 @@ public abstract class DecoratorBase : ITask {
6
7
private bool _enabled = true;
8
public bool Enabled {
9
- get { return child != null && _enabled; }
+ get { return child != null && child.Enabled && _enabled; }
10
set { _enabled = value; }
11
12
0 commit comments