Browse Source

Minor bug updates

master
JoshuaReason 5 years ago
parent
commit
8e40b94034
4 changed files with 6 additions and 3 deletions
  1. +1
    -1
      Assets/Scenes/ClientScene.unity
  2. +1
    -1
      Assets/Scipts/Map.cs
  3. +1
    -1
      Assets/Scipts/Multiplayer/Client/PlayersManager.cs
  4. +3
    -0
      ProjectSettings/EditorBuildSettings.asset

+ 1
- 1
Assets/Scenes/ClientScene.unity View File

@ -142,7 +142,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
SetSingletonOnAwake: 1 SetSingletonOnAwake: 1
isPersistant: 1 isPersistant: 1
ServerAddress: 127.0.0.1
ServerAddress: 10.17.38.221
Port: 4444 Port: 4444
ConnectOnStart: 0 ConnectOnStart: 0
GameSceneName: TestScene GameSceneName: TestScene

+ 1
- 1
Assets/Scipts/Map.cs View File

@ -40,7 +40,7 @@ public class Map : MonoBehaviour {
foreach (GameObject Player in Players) foreach (GameObject Player in Players)
{ {
Transform PT = Player.transform; 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 + 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 + 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); Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + minZ), transform.rotation, PT);

+ 1
- 1
Assets/Scipts/Multiplayer/Client/PlayersManager.cs View File

@ -16,7 +16,7 @@ namespace Multiplayer
public Vector3 mapTop; public Vector3 mapTop;
public Vector3 mapBot; public Vector3 mapBot;
private Dictionary<byte, GameObject> RemotePlayers;
private Dictionary<byte, GameObject> RemotePlayers = new Dictionary<byte, GameObject>();
private GameObject PlayerObject; private GameObject PlayerObject;
private void Start() private void Start()

+ 3
- 0
ProjectSettings/EditorBuildSettings.asset View File

@ -8,4 +8,7 @@ EditorBuildSettings:
- enabled: 1 - enabled: 1
path: Assets/Scenes/SampleScene.unity path: Assets/Scenes/SampleScene.unity
guid: 2cda990e2423bbf4892e6590ba056729 guid: 2cda990e2423bbf4892e6590ba056729
- enabled: 1
path: Assets/Scenes/TestScene.unity
guid: 3a82ef4cc5d678b418d3a37252b80f6d
m_configObjects: {} m_configObjects: {}

Loading…
Cancel
Save