|
|
@@ -93,6 +93,8 @@ export default class Game extends cc.Component {
|
|
|
@property({ displayName: '数字组', type: cc.Label })
|
|
|
lbl_value: cc.Label[] = [];
|
|
|
|
|
|
+ //订单部分
|
|
|
+
|
|
|
posY = 0;
|
|
|
/** 是否开始增加次数倒计时 */
|
|
|
private lastTimeSpan = 0;
|
|
|
@@ -832,5 +834,24 @@ export default class Game extends cc.Component {
|
|
|
|
|
|
return des;
|
|
|
}
|
|
|
+
|
|
|
+ //订单部分
|
|
|
+
|
|
|
+ async doCropFlyLogic(plantId:number, farmNode: cc.Node)
|
|
|
+ {
|
|
|
+ let crop = cc.instantiate(this.icon_plant.node);
|
|
|
+ crop.active = true;
|
|
|
+ crop.getComponent(cc.Sprite).spriteFrame = await mk.loader.load("game/coregame/texture/plant_icons/nameIcon/plant_name_" + plantId, cc.SpriteFrame);
|
|
|
+
|
|
|
+ mk.fly.playFlyAniExtra(farmNode, this.node_taskHb, crop, 0.6);
|
|
|
+ }
|
|
|
+
|
|
|
+ async cloneCropFuc(plantId: number)
|
|
|
+ {
|
|
|
+
|
|
|
+ //iconPath = "game/coregame/texture/plant_icons/plantIcon_";
|
|
|
+
|
|
|
+ //this.icon_plantName.spriteFrame = await mk.loader.load(namePath + gData.gameData.nextCanProduct.picture, cc.SpriteFrame);
|
|
|
+ }
|
|
|
}
|
|
|
|