mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
only ninja NPCs
This commit is contained in:
parent
0d6868b693
commit
0d461a8836
@ -38,12 +38,12 @@ void Update()
|
||||
[Command]
|
||||
void CmdSpawnNPC()
|
||||
{
|
||||
GameObject npc = Instantiate(TestNTNetworkManager.singleton.npcPrefab);
|
||||
npc.GetComponent<PlayerName>().playerName = "NPC";
|
||||
npc.GetComponent<CharacterController>().enabled = true;
|
||||
npc.GetComponent<PlayerMove>().enabled = true;
|
||||
NetworkServer.Spawn(npc);
|
||||
NpcList.Add(npc);
|
||||
//GameObject npc = Instantiate(TestNTNetworkManager.singleton.npcPrefab);
|
||||
//npc.GetComponent<PlayerName>().playerName = "NPC";
|
||||
//npc.GetComponent<CharacterController>().enabled = true;
|
||||
//npc.GetComponent<PlayerMove>().enabled = true;
|
||||
//NetworkServer.Spawn(npc);
|
||||
//NpcList.Add(npc);
|
||||
|
||||
GameObject npcNinja = Instantiate(TestNTNetworkManager.singleton.npcNinjaPrefab);
|
||||
npcNinja.GetComponent<PlayerName>().playerName = "NPC-Ninja";
|
||||
|
Loading…
Reference in New Issue
Block a user