你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Aar0n
赞同来自:
柠萌
Ace1024
onAwake() { const self = this; self.gameObj = self.owner as Laya.Sprite; Laya.Physics.I.worldRoot = self.gameObj; this.cameraRect = new Laya.Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect.x = this.target.x - 400; this.cameraRect.y = this.target.y - 400; }
要回复问题请先登录
4 个回复
Aar0n
赞同来自:
Aar0n
赞同来自:
柠萌
赞同来自:
Ace1024
赞同来自: