Adding map generator

This commit is contained in:
Anonymous Raccoon
2018-03-18 19:46:35 +01:00
parent 369d76cfaa
commit a35df76bbc
5 changed files with 36 additions and 4 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ public class MapGenerator : MonoBehaviour
Vector3 bottomRight = new Vector3(map.width, 0, 0);
cam.transform.position = new Vector3(map.width / 2, map.height / 2, -Vector3.Distance(topLeft, bottomRight) / 2.5f);
NetworkManager netManager = GameObject.Find("GameManager").GetComponent<NetworkManager>();
StartCoroutine(netManager.SetDeathZone(topLeft, bottomRight));
//NetworkManager netManager = GameObject.Find("GameManager").GetComponent<NetworkManager>();
//StartCoroutine(netManager.SetDeathZone(topLeft, bottomRight));
}
private void CreateTile(int x, int y)