更新最新版本
This commit is contained in:
parent
d8ee0e29ec
commit
8e6a972c0f
|
|
@ -1977,7 +1977,7 @@ export default class Block extends cc.Component {
|
|||
|
||||
this.scheduleCallback2 = setTimeout(() => {
|
||||
MapConroler._instance.blockNum -= 1;
|
||||
MapConroler._instance.special_Treatment(this.node, type, false);
|
||||
MapConroler._instance.special_Treatment(this.node, type, true);
|
||||
if (this.node) {
|
||||
this.moveFlower();
|
||||
}
|
||||
|
|
@ -2191,7 +2191,7 @@ export default class Block extends cc.Component {
|
|||
|
||||
//如果方块可以消除
|
||||
MapConroler._instance.blockNum -= 1;
|
||||
MapConroler._instance.special_Treatment(this.node, true, false);
|
||||
MapConroler._instance.special_Treatment(this.node, true, true);
|
||||
if (this.node) {
|
||||
this.moveFlower();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2957,7 +2957,7 @@ export default class MapConroler extends cc.Component {
|
|||
if (freezeBlock.length > 0) {
|
||||
for (let i = 0; i < freezeBlock.length; i++) {
|
||||
if (freezeBlock[i])
|
||||
freezeBlock[i].getChildByName("freeze").getComponent("Freeze").reduce(1);
|
||||
freezeBlock[i].getChildByName("freeze").getComponent("Freeze").reduce(1, prop);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2989,7 +2989,7 @@ export default class MapConroler extends cc.Component {
|
|||
if (questionBlock.length > 0) {
|
||||
for (let i = 0; i < questionBlock.length; i++) {
|
||||
if (questionBlock[i])
|
||||
questionBlock[i].getChildByName("question").getComponent("Question").reduce(1);
|
||||
questionBlock[i].getChildByName("question").getComponent("Question").reduce(1, prop);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1618,9 +1618,9 @@ export namespace MiniGameSdk {
|
|||
current_level: (cc.fx.GameConfig.GM_INFO.level + 1), //当前关卡等级 number
|
||||
current_health: cc.fx.GameConfig.GM_INFO.hp, //当前体力值
|
||||
tmp_coin: cc.fx.GameConfig.GM_INFO.coin,//当前金币
|
||||
freeze_amount: cc.fx.GameConfig.GM_INFO.freeze_amount,//当前道具
|
||||
hammer_amount: cc.fx.GameConfig.GM_INFO.hammer_amount,//当前道具
|
||||
magic_amount: cc.fx.GameConfig.GM_INFO.magic_amount,//当前道具
|
||||
freeze_amount: cc.fx.GameConfig.GM_INFO.freezeAmount,//当前道具
|
||||
hammer_amount: cc.fx.GameConfig.GM_INFO.hammerAmount,//当前道具
|
||||
magic_amount: cc.fx.GameConfig.GM_INFO.magicAmount,//当前道具
|
||||
version: cc.fx.GameConfig.GM_INFO.version.toString(),//当前版本号
|
||||
user_id: cc.fx.GameConfig.GM_INFO.userId //用户id
|
||||
};
|
||||
|
|
@ -1630,9 +1630,9 @@ export namespace MiniGameSdk {
|
|||
current_level: (cc.fx.GameConfig.GM_INFO.level + 1), //当前关卡等级 number
|
||||
current_health: cc.fx.GameConfig.GM_INFO.hp, //当前体力值
|
||||
tmp_coin: cc.fx.GameConfig.GM_INFO.coin,//当前金币
|
||||
freeze_amount: cc.fx.GameConfig.GM_INFO.freeze_amount,//当前道具
|
||||
hammer_amount: cc.fx.GameConfig.GM_INFO.hammer_amount,//当前道具
|
||||
magic_amount: cc.fx.GameConfig.GM_INFO.magic_amount,//当前道具
|
||||
freeze_amount: cc.fx.GameConfig.GM_INFO.freezeAmount,//当前道具
|
||||
hammer_amount: cc.fx.GameConfig.GM_INFO.hammerAmount,//当前道具
|
||||
magic_amount: cc.fx.GameConfig.GM_INFO.magicAmount,//当前道具
|
||||
version: cc.fx.GameConfig.GM_INFO.version.toString(),
|
||||
register_time: register_time,
|
||||
user_id: cc.fx.GameConfig.GM_INFO.userId, //用户id
|
||||
|
|
@ -1646,16 +1646,16 @@ export namespace MiniGameSdk {
|
|||
current_level: (cc.fx.GameConfig.GM_INFO.level + 1), //当前关卡等级 number
|
||||
current_health: cc.fx.GameConfig.GM_INFO.hp, //当前体力值
|
||||
tmp_coin: cc.fx.GameConfig.GM_INFO.coin,//当前金币
|
||||
freeze_amount: cc.fx.GameConfig.GM_INFO.freeze_amount,//当前道具
|
||||
hammer_amount: cc.fx.GameConfig.GM_INFO.hammer_amount,//当前道具
|
||||
magic_amount: cc.fx.GameConfig.GM_INFO.magic_amount,//当前道具
|
||||
freeze_amount: cc.fx.GameConfig.GM_INFO.freezeAmount,//当前道具
|
||||
hammer_amount: cc.fx.GameConfig.GM_INFO.hammerAmount,//当前道具
|
||||
magic_amount: cc.fx.GameConfig.GM_INFO.magicAmount,//当前道具
|
||||
version: cc.fx.GameConfig.GM_INFO.version.toString(),
|
||||
user_id: cc.fx.GameConfig.GM_INFO.userId, //用户id
|
||||
pay_user: pay_user
|
||||
}
|
||||
}
|
||||
// @ts-ignore
|
||||
// console.log("设置公共属性时:————————————", superProperties.uid);
|
||||
console.log("设置公共属性时:————————————", superProperties);
|
||||
API._ta.setSuperProperties(superProperties);//设置公共事件属性
|
||||
API.updateCoinAndLevel();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ export default class Freeze extends cc.Component {
|
|||
|
||||
}
|
||||
|
||||
reduce(number) {
|
||||
reduce(number, type) {
|
||||
if (this.node.parent) {
|
||||
if (this.node.parent.getComponent("Block").block_Info.floor) {
|
||||
if (this.node.parent.getComponent("Block").block_Info.floor && type == false) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ export default class Question extends cc.Component {
|
|||
|
||||
}
|
||||
|
||||
reduce(number) {
|
||||
reduce(number, type) {
|
||||
if (this.node.parent) {
|
||||
if (this.node.parent.getComponent("Block").block_Info.floor) {
|
||||
if (this.node.parent.getComponent("Block").block_Info.floor && type == false) {
|
||||
console.log("__________问号块,减少时,还在地板下面");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const { ccclass, property } = cc._decorator;
|
|||
|
||||
|
||||
@ccclass
|
||||
export default class Question extends cc.Component {
|
||||
export default class Switchs extends cc.Component {
|
||||
static _instance: any;
|
||||
time: number = 60;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user