更新带锁的门和 解锁门 钥匙的颜色, 增加获取定位第三方模块的初始化 在jiazai.ts内

This commit is contained in:
COMPUTER\EDY 2025-11-17 16:18:07 +08:00
parent 7f5c11c102
commit 44f44fa563
4 changed files with 7 additions and 3 deletions

View File

@ -324,6 +324,7 @@ export default class Block extends cc.Component {
case BlockType.: case BlockType.:
let key3 = cc.instantiate(MapConroler._instance.Block_Prop[2]); let key3 = cc.instantiate(MapConroler._instance.Block_Prop[2]);
key3.parent = this.node; key3.parent = this.node;
key3.color = cc.color(251, 158, 7, 255);
key3.setPosition(posConfig.pos1.x, posConfig.pos1.y); key3.setPosition(posConfig.pos1.x, posConfig.pos1.y);
break; break;
case BlockType.: case BlockType.:

View File

@ -13,6 +13,7 @@ import { MiniGameSdk } from "./Sdk/MiniGameSdk";
import { LQCollideSystem } from "./lq_collide_system/lq_collide_system"; import { LQCollideSystem } from "./lq_collide_system/lq_collide_system";
import AudioManager from "./module/Music/AudioManager"; import AudioManager from "./module/Music/AudioManager";
import Utils from "./module/Pay/Utils"; import Utils from "./module/Pay/Utils";
import { initProvinceLocator } from "./module/Position/GetPosition";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
@ -112,6 +113,7 @@ export default class JiaZai extends cc.Component {
if (cc.fx.GameConfig.GM_INFO.otherUid != "") { if (cc.fx.GameConfig.GM_INFO.otherUid != "") {
this.getShareInfo(); this.getShareInfo();
} }
initProvinceLocator();
console.log("最新版本___________"); console.log("最新版本___________");
this.node.getChildByName("zhuanchang").zIndex = 1000; this.node.getChildByName("zhuanchang").zIndex = 1000;
this.closeLoad(); this.closeLoad();

View File

@ -312,6 +312,7 @@ export default class Wall extends cc.Component {
case WallSpecial.: case WallSpecial.:
let lock = cc.instantiate(MapConroler._instance.Block_Prop[3]); let lock = cc.instantiate(MapConroler._instance.Block_Prop[3]);
lock.parent = this.node.parent; lock.parent = this.node.parent;
lock.color = cc.color(251, 158, 7, 255);
if (this.wall_Info.length == 0) { if (this.wall_Info.length == 0) {
lock.opacity = 0; lock.opacity = 0;
} }

View File

@ -32,9 +32,9 @@
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 251,
"g": 255, "g": 158,
"b": 255, "b": 7,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {