-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
7 additions
and
27 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 7 additions & 9 deletions
16
ProjectObsidian/ProtoFlux/Users/Status/IsUserInSeatedMode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
using FrooxEngine; | ||
using FrooxEngine.ProtoFlux; | ||
using ProtoFlux.Core; | ||
using ProtoFlux.Core; | ||
using ProtoFlux.Runtimes.Execution; | ||
|
||
namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Locomotion | ||
namespace FrooxEngine.ProtoFlux.Status | ||
{ | ||
[ContinuouslyChanging] | ||
[NodeCategory("Obsidian/Locomotion")] | ||
public class IsUserInSeatedModeNode : ValueFunctionNode<FrooxEngineContext, bool> | ||
[NodeCategory("ProtoFlux/Obsidian/Status")] | ||
public class IsUserInSeatedModeNode : ValueFunctionNode<ExecutionContext, bool> | ||
{ | ||
public readonly ObjectInput<User> User; | ||
|
||
protected override bool Compute(FrooxEngineContext context) | ||
protected override bool Compute(ExecutionContext context) | ||
{ | ||
var user = User.Evaluate(context); | ||
return user != null && user.InputInterface.SeatedMode; | ||
User user = User.Evaluate(context); | ||
return user == null ? false : user.InputInterface.SeatedMode; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.