|
@@ -153,6 +153,7 @@ export default class AniControl extends cc.Component {
|
|
|
|
|
|
|
|
private clickSheepBtn() {
|
|
private clickSheepBtn() {
|
|
|
if (this.sheepMoveEnd) {
|
|
if (this.sheepMoveEnd) {
|
|
|
|
|
+ mk.audio.playEffect("button");
|
|
|
mk.ui.openPanel('module/newOpenRedBag/newOpenRedBag');
|
|
mk.ui.openPanel('module/newOpenRedBag/newOpenRedBag');
|
|
|
this.sheepMoveEnd = false;
|
|
this.sheepMoveEnd = false;
|
|
|
this.hb_btn.active = false;
|
|
this.hb_btn.active = false;
|
|
@@ -236,12 +237,7 @@ export default class AniControl extends cc.Component {
|
|
|
mk.audio.playEffect("button");
|
|
mk.audio.playEffect("button");
|
|
|
if (customEvenData == 'bird_1') {
|
|
if (customEvenData == 'bird_1') {
|
|
|
this.flyBirdFinished_1();
|
|
this.flyBirdFinished_1();
|
|
|
- let add = this.getRewardByHttp("bird_1");
|
|
|
|
|
-
|
|
|
|
|
- mk.fly.PlayCoinAnim(1, 5, this.flyBird_1.node, '', () => {
|
|
|
|
|
-
|
|
|
|
|
- console.log('--');
|
|
|
|
|
- }, -1, 2);
|
|
|
|
|
|
|
+ this.getRewardByHttp("bird_1");
|
|
|
} else if (customEvenData == 'bird_2') {
|
|
} else if (customEvenData == 'bird_2') {
|
|
|
this.flyBirdFinished_2();
|
|
this.flyBirdFinished_2();
|
|
|
this.getRewardByHttp("bird_2");
|
|
this.getRewardByHttp("bird_2");
|
|
@@ -276,6 +272,7 @@ export default class AniControl extends cc.Component {
|
|
|
let intV = Math.floor(add / several);
|
|
let intV = Math.floor(add / several);
|
|
|
let r = add % several;
|
|
let r = add % several;
|
|
|
|
|
|
|
|
|
|
+ mk.audio.playEffect('redmoney');
|
|
|
if (type == 'bird_1') {
|
|
if (type == 'bird_1') {
|
|
|
for (let i = 0; i != several; ++i) {
|
|
for (let i = 0; i != several; ++i) {
|
|
|
mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, '', null, -1, intV);
|
|
mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, '', null, -1, intV);
|