|
|
@@ -31,8 +31,8 @@ export default class HorseRace extends cc.Component {
|
|
|
@property({ displayName: '回调', type: cc.Component.EventHandler })
|
|
|
callBack: cc.Component.EventHandler = null;
|
|
|
|
|
|
- @property({ displayName: '文字节点', type: cc.Node })
|
|
|
- node_describ: cc.Node = null;
|
|
|
+ @property({ displayName: '文字节点', type: cc.Label })
|
|
|
+ lbl_value: cc.Label = null;
|
|
|
|
|
|
private node_icon_1: cc.Node = null;
|
|
|
private node_icon_2: cc.Node = null;
|
|
|
@@ -66,6 +66,9 @@ export default class HorseRace extends cc.Component {
|
|
|
let productJson = gData.gameData.configs.Product;
|
|
|
let id = orderData.orderTaskList[this.index];
|
|
|
this.realyPicture = productJson[id.Id - 1].picture;
|
|
|
+ if(this.lbl_value){
|
|
|
+ this.lbl_value.string = orderData.redMoneyAddition/100 + "";
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
sss = 6;
|
|
|
@@ -74,10 +77,11 @@ export default class HorseRace extends cc.Component {
|
|
|
|
|
|
if (this.delay <= 0 && !this.isFinish) {
|
|
|
//节点1
|
|
|
- if(!this.isDoAct && this.node_describ)
|
|
|
+ if(!this.isDoAct && this.lbl_value)
|
|
|
{
|
|
|
this.isDoAct = true;
|
|
|
- cc.tween(this.node_describ).to(0.3,{scale: 1.4}).to(0.3, {scale: 1}).start();
|
|
|
+ let node_parent = this.lbl_value.node.parent;
|
|
|
+ cc.tween(node_parent).to(0.3,{scale: 1.4}).to(0.3, {scale: 1}).start();
|
|
|
}
|
|
|
this.node_icon_1.setPosition(new cc.Vec2(0, this.node_icon_1.position.y - this.speed));
|
|
|
if (this.node_icon_1.position.y <= - this.distance) {
|