Beispiel #1
0
 protected override void Awake()
 {
     base.Awake();
     camController = Camera.main.GetComponent<CustomCameraController>();
     normalHeight = camController.targetHeight;
     normalDistance = camController.normalDistance;
 }
Beispiel #2
0
        private void InitGenerator()
        {
            if (randomizeSeed)
            {
                config.seed = Random.Range(int.MinValue, int.MaxValue);
            }

            MapGenerator generator = new MapGenerator(config);

            CameraController = Camera.GetComponent <CustomCameraController>();
            Map = generator.Generate();
        }