07 2023 档案

摘要:enum BlockPrefab{ BLOCK2 = 0, BLOCK4, BLOCK8, BLOCK16, BLOCK32, BLOCK64, BLOCK128, BLOCK256, BLOCK512, BLOCK1024, BLOCK2048 } let num = BlockPrefab.BL 阅读全文
posted @ 2023-07-26 16:48 赋流 阅读(576) 评论(0) 推荐(0)
摘要:const animationComponent = i.addComponent(Animation); if(animationComponent){ const component = animationComponent.getComponent(Animation); if(compone 阅读全文
posted @ 2023-07-24 20:03 赋流 阅读(385) 评论(0) 推荐(0)
摘要:今天在开发过程中遇到深拷贝与浅拷贝的问题 const userData1: number[][] = this.dataMangager.getUserDataMap(); 该行代码中的userData1 是一个指向 this.dataMangager.getUserDataMap() 返回的二维数 阅读全文
posted @ 2023-07-24 15:11 赋流 阅读(530) 评论(0) 推荐(0)
摘要:出现这种情况一般为节点未成功创建 阅读全文
posted @ 2023-07-21 09:16 赋流 阅读(223) 评论(0) 推荐(0)
摘要:private _dataMap:Vec3[][] = []; private _userDataMap:number[][] = []; init() { for(let i = 1; i <= 4; i++){ for(let j = 1; j <= 4; j++){this._dataMap[ 阅读全文
posted @ 2023-07-20 19:49 赋流 阅读(1203) 评论(0) 推荐(0)