removed line from CmdSpawnNPC

This commit is contained in:
MrGadget1024 2023-01-26 06:25:13 -05:00
parent 7dc614591d
commit 2c556661a2

View File

@ -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);