mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
removed line from CmdSpawnNPC
This commit is contained in:
parent
7dc614591d
commit
2c556661a2
@ -38,7 +38,6 @@ void CmdSpawnNPC()
|
||||
Vector3 spawnPos = transform.position + Vector3.forward;
|
||||
GameObject npc = Instantiate(NetworkManager.singleton.spawnPrefabs[0], spawnPos, Quaternion.identity);
|
||||
npc.GetComponent<PlayerName>().playerName = "NPC";
|
||||
npc.GetComponent<NetworkTransformReliable>().syncDirection = SyncDirection.ServerToClient;
|
||||
npc.GetComponent<CharacterController>().enabled = true;
|
||||
npc.GetComponent<PlayerMove>().enabled = true;
|
||||
NetworkServer.Spawn(npc);
|
||||
|
Loading…
Reference in New Issue
Block a user