summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs')
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs
new file mode 100644
index 00000000..737b6f32
--- /dev/null
+++ b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs
@@ -0,0 +1,12 @@
+using UnityEngine.Networking;
+
+namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNetwork
+{
+ public class IsServer : Conditional
+ {
+ public override TaskStatus OnUpdate()
+ {
+ return NetworkServer.active ? TaskStatus.Success : TaskStatus.Failure;
+ }
+ }
+} \ No newline at end of file