示例#1
0
 public void SetsCameraBoundsToTilemap()
 {
     Debug.Log("camera bounds: " + mapCamera.CalculateCameraBounds());
     gameMap.UpdateMapToRadius(1);
     Debug.Log("new camera bounds: " + mapCamera.CalculateCameraBounds());
     Debug.Log("ortho size before: " + mapCamera.camera.orthographicSize);
     mapCamera.Zoom(140);
     Debug.Log("ortho size after: " + mapCamera.camera.orthographicSize);
     Debug.Log("newer camera bounds: " + mapCamera.CalculateCameraBounds());
 }