diff --git a/ProjectObsidian/ProtoFlux/Flow/Time/Local Stopwatch.cs b/ProjectObsidian/ProtoFlux/Flow/Time/Local Stopwatch.cs index ea4d03b..e7e31e6 100644 --- a/ProjectObsidian/ProtoFlux/Flow/Time/Local Stopwatch.cs +++ b/ProjectObsidian/ProtoFlux/Flow/Time/Local Stopwatch.cs @@ -31,8 +31,6 @@ public class LocalStopwatch : VoidNode private double _elapsedTime = 0.0; private bool _isRunning = false; - public readonly ValueInput Condition; - public LocalStopwatch() { ElapsedTime = new ValueOutput(this); @@ -46,11 +44,8 @@ protected override void ComputeOutputs(FrooxEngineContext context) { double currentTime = context.World.Time.WorldTime; - // Check if Condition is true - bool conditionMet = Condition.Evaluate(context); // Directly read the value of Condition - - // Update elapsed time if running and condition is true - if (_isRunning && conditionMet) + // Update elapsed time if running + if (_isRunning) { if (_startTime > 0) { @@ -68,12 +63,6 @@ protected override void ComputeOutputs(FrooxEngineContext context) IsRunning.Write(_isRunning, context); } - - - - - - private IOperation DoStart(FrooxEngineContext context) { _isRunning = true; @@ -98,4 +87,4 @@ private IOperation DoReset(FrooxEngineContext context) return OnReset.Target; } } -} \ No newline at end of file +}