diff --git a/Assets/Scenes/ClientScene.unity b/Assets/Scenes/ClientScene.unity index 2b9d7f6..601062e 100644 --- a/Assets/Scenes/ClientScene.unity +++ b/Assets/Scenes/ClientScene.unity @@ -142,7 +142,7 @@ MonoBehaviour: m_EditorClassIdentifier: SetSingletonOnAwake: 1 isPersistant: 1 - ServerAddress: 127.0.0.1 + ServerAddress: 10.17.38.221 Port: 4444 ConnectOnStart: 0 GameSceneName: TestScene diff --git a/Assets/Scipts/Map.cs b/Assets/Scipts/Map.cs index 37216b0..d195f7c 100644 --- a/Assets/Scipts/Map.cs +++ b/Assets/Scipts/Map.cs @@ -40,7 +40,7 @@ public class Map : MonoBehaviour { foreach (GameObject Player in Players) { Transform PT = Player.transform; - Transform model = PT.FindChild("Model"); + Transform model = PT.Find("Model"); Instantiate(model, new Vector3(PT.position.x + minX, PT.position.y, PT.position.z), transform.rotation, PT); Instantiate(model, new Vector3(PT.position.x + maxX, PT.position.y, PT.position.z), transform.rotation, PT); Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + minZ), transform.rotation, PT); diff --git a/Assets/Scipts/Multiplayer/Client/PlayersManager.cs b/Assets/Scipts/Multiplayer/Client/PlayersManager.cs index dcc4d0f..7c2b99c 100644 --- a/Assets/Scipts/Multiplayer/Client/PlayersManager.cs +++ b/Assets/Scipts/Multiplayer/Client/PlayersManager.cs @@ -16,7 +16,7 @@ namespace Multiplayer public Vector3 mapTop; public Vector3 mapBot; - private Dictionary RemotePlayers; + private Dictionary RemotePlayers = new Dictionary(); private GameObject PlayerObject; private void Start() diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index 82ab0f5..c56ea49 100644 --- a/ProjectSettings/EditorBuildSettings.asset +++ b/ProjectSettings/EditorBuildSettings.asset @@ -8,4 +8,7 @@ EditorBuildSettings: - enabled: 1 path: Assets/Scenes/SampleScene.unity guid: 2cda990e2423bbf4892e6590ba056729 + - enabled: 1 + path: Assets/Scenes/TestScene.unity + guid: 3a82ef4cc5d678b418d3a37252b80f6d m_configObjects: {}