|
|
@@ -33,12 +33,6 @@ export default class Game extends cc.Component {
|
|
|
btn_cashOutNormal: cc.Sprite = null;
|
|
|
@property({ type: cc.Sprite, displayName: "金猪提现" })
|
|
|
btn_cashOutGold: cc.Sprite = null;
|
|
|
- @property({ type: cc.Node, displayName: "气泡红包1" })
|
|
|
- btn_getRed1: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "气泡红包2" })
|
|
|
- btn_getRed2: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "气泡红包3" })
|
|
|
- btn_getRed3: cc.Node = null;
|
|
|
|
|
|
@property({ type: cc.Node, displayName: "红包币图标" })
|
|
|
icon_hb: cc.Node = null;
|
|
|
@@ -83,7 +77,6 @@ export default class Game extends cc.Component {
|
|
|
start() {
|
|
|
this.initMusic();
|
|
|
this.initBtns();
|
|
|
- this.initQiPaos();
|
|
|
this.initInfo();
|
|
|
this.autoOpenPanel();
|
|
|
this.runGuideWeak();
|
|
|
@@ -178,17 +171,6 @@ export default class Game extends cc.Component {
|
|
|
// sc.init();
|
|
|
}
|
|
|
|
|
|
- private initQiPaos() {
|
|
|
- mk.tween.scale(this.btn_getRed1, 0.6, 0, 1, null, 'backOut');
|
|
|
- mk.tween.scale(this.btn_getRed2, 0.6, 0, 1, null, 'backOut');
|
|
|
- mk.tween.scale(this.btn_getRed3, 0.6, 0, 1, null, 'backOut');
|
|
|
-
|
|
|
- let easing_type = '';//sineInOut
|
|
|
- cc.tween(this.btn_getRed1).to(1.2, { y: 100 }, { easing: easing_type }).to(1.2, { y: 50 }, { easing: easing_type }).union().repeatForever().start();
|
|
|
- cc.tween(this.btn_getRed2).delay(0.2).to(1.5, { y: 125 }, { easing: easing_type }).to(1.5, { y: 50 }, { easing: easing_type }).union().repeatForever().start();
|
|
|
- cc.tween(this.btn_getRed3).delay(0.4).to(1, { y: 10 }, { easing: easing_type }).to(1, { y: -50 }, { easing: easing_type }).union().repeatForever().start();
|
|
|
- }
|
|
|
-
|
|
|
private initInfo() {
|
|
|
this.lbl_redMoney.string = gData.gameData.gameData.redMoney + "";
|
|
|
gData.gameData.init_coin = false;
|