/// <summary>Creates grid baised on the current settings of the grid creator.</summary> public void CreateGrid() { //Sets prefabs if nessicary if (tilePrefab == null) { SetPrefabs(); } switch (gridParams.type) { case GridType.Radial: { CreateRadialGrid(); //Updates bounds of the Camera to the new grid bounds CameraManager.Instance.UpdateBounds(gridParams.type, gridParams.GetRadial()); break; } case GridType.Square: { CreateSquareGrid(); //Updates bounds of the Camera to the new grid bounds CameraManager.Instance.UpdateBounds(gridParams.type, gridParams.GetSquare()); break; } } }