This commit is contained in:
brausjonas
2022-05-15 20:58:23 +02:00
parent f47cd01cac
commit eb986a603e
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -11,6 +11,7 @@ public class World : MonoBehaviour
//basic
[SerializeField] public int worldSize;
private int randomOffsetX, randomOffsetZ;
private int seed = 0;
//chunks
public Chunk[,] chunks;
@@ -20,9 +21,10 @@ public class World : MonoBehaviour
[SerializeField] private int transferDelay;
private void Start()
{
Random.InitState(seed);
randomOffsetX = Random.Range(0, 10000);
randomOffsetZ = Random.Range(0, 10000);
if (File.Exists(Application.dataPath + "\\save.world"))
{
chunks = new Chunk[worldSize, worldSize];
+7
View File
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 940041af630d8d944ac3b74467aa4ae7
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: