From de14ce4aa6592cba3714cb6e544c845c3795df9e Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 10 Mar 2023 04:17:16 -0500 Subject: [PATCH] Bots init ninja false --- Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity | 4 ++-- Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity b/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity index 10215524a..ab842aaa8 100644 --- a/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity +++ b/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity @@ -573,7 +573,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 4 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &5678319891357624151 PrefabInstance: @@ -696,7 +696,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 5678319892216973633, guid: 7cf6fcfd5a32c1545bc85a85bfa9c80b, type: 3} propertyPath: m_RootOrder - value: 3 + value: 4 objectReference: {fileID: 0} - target: {fileID: 5678319892216973633, guid: 7cf6fcfd5a32c1545bc85a85bfa9c80b, type: 3} propertyPath: m_AnchorMax.x diff --git a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs index 1fa9c13c1..890784f88 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs @@ -132,6 +132,9 @@ public override void Start() void ProcessCmdLineArgs() { + // Initialize false for bots, arg will set it true if present + ((TestNTNetworkAuthenticator)authenticator).SetNinja(false); + foreach (string arg in Environment.GetCommandLineArgs()) { if (arg.StartsWith("/h:", StringComparison.InvariantCultureIgnoreCase))