From 0d461a88360368611633f2f6dc6d6a22894ee8bd Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:50:34 -0500 Subject: [PATCH] only ninja NPCs --- Assets/Mirror/Examples/TestNT/Scripts/NPCHandler.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Mirror/Examples/TestNT/Scripts/NPCHandler.cs b/Assets/Mirror/Examples/TestNT/Scripts/NPCHandler.cs index 9a05931e1..8052b68bb 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/NPCHandler.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/NPCHandler.cs @@ -38,12 +38,12 @@ void Update() [Command] void CmdSpawnNPC() { - GameObject npc = Instantiate(TestNTNetworkManager.singleton.npcPrefab); - npc.GetComponent().playerName = "NPC"; - npc.GetComponent().enabled = true; - npc.GetComponent().enabled = true; - NetworkServer.Spawn(npc); - NpcList.Add(npc); + //GameObject npc = Instantiate(TestNTNetworkManager.singleton.npcPrefab); + //npc.GetComponent().playerName = "NPC"; + //npc.GetComponent().enabled = true; + //npc.GetComponent().enabled = true; + //NetworkServer.Spawn(npc); + //NpcList.Add(npc); GameObject npcNinja = Instantiate(TestNTNetworkManager.singleton.npcNinjaPrefab); npcNinja.GetComponent().playerName = "NPC-Ninja";