File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ private void Awake()
1616 private void Start ( )
1717 {
1818 LoadMap ( "Map1" ) ;
19- //SceneManager.LoadSceneAsync("SampleScene", LoadSceneMode.Additive);
2019 }
2120
2221 public void LoadMap ( string mapReference )
Original file line number Diff line number Diff line change 1- using System . Collections ;
1+ using System . Collections ;
22using System . Collections . Generic ;
33using UnityEngine ;
44using UnityEngine . AI ;
@@ -21,7 +21,7 @@ public class GameManager : MonoBehaviour
2121 public BoxCollider minimapFOVCollider ;
2222 public Minimap minimapScript ;
2323 public Collider mapWrapperCollider ;
24- public int terrainSize = 200 ;
24+ public int terrainSize ;
2525
2626 [ HideInInspector ]
2727 public bool gameIsPaused ;
@@ -63,7 +63,7 @@ private void _SetupMinimap()
6363 {
6464 Bounds b = GameObject . Find ( "Terrain" ) . GetComponent < Terrain > ( ) . terrainData . bounds ;
6565
66- float terrainSize = b . size . x ;
66+ terrainSize = ( int ) b . size . x ;
6767 float p = terrainSize / 2 ;
6868
6969 minimapAnchor . position = new Vector3 ( p , 0 , p ) ;
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ EditorBuildSettings:
88 - enabled : 1
99 path : Assets/Scenes/Core.unity
1010 guid : 53b3e4059966448ff8ec31821492814a
11- - enabled : 1
12- path : Assets/Scenes/MainMenu.unity
13- guid : fc1ec90ef47a145c98b66e90897d5db6
1411 - enabled : 1
1512 path : Assets/Scenes/GameScene.unity
1613 guid : 9fc0d4010bbf28b4594072e72b8655ab
You can’t perform that action at this time.
0 commit comments