feat: 支持新地图
This commit is contained in:
@@ -20,7 +20,7 @@ export class CameraFollow extends Component {
|
||||
mapWidth: number = 1080; // 地图宽度
|
||||
|
||||
@property
|
||||
mapHeight: number = 2560; // 地图高度
|
||||
mapHeight: number = 1920; // 地图高度
|
||||
|
||||
private camera: Camera | null = null;
|
||||
|
||||
@@ -28,7 +28,7 @@ export class CameraFollow extends Component {
|
||||
// 获取相机组件
|
||||
this.camera = this.getComponent(Camera);
|
||||
|
||||
this.camera.orthoHeight = 500
|
||||
this.camera.orthoHeight = 680
|
||||
if (!this.camera) {
|
||||
console.error('CameraFollow: 未找到Camera组件');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user