Commit 97cd3ad1 authored by wildfirecode's avatar wildfirecode

1

parent f5607a43
...@@ -9,7 +9,7 @@ import { DataManager } from "../../../libs/tw/manager/DataManager"; ...@@ -9,7 +9,7 @@ import { DataManager } from "../../../libs/tw/manager/DataManager";
* @param customizedType * @param customizedType
*/ */
const doStart = (callback: Function, isAgain = false, credits?: number, customizedType?: number) => { const doStart = (callback: Function, isAgain = false, credits?: number, customizedType?: number) => {
if (window['requirelogin']) { if (window['requirelogin'] && window['config_notrequirelogin'] === undefined) {
window['requirelogin'](); window['requirelogin']();
return; return;
} }
......
...@@ -20,8 +20,12 @@ export default class Kids extends egret.Sprite { ...@@ -20,8 +20,12 @@ export default class Kids extends egret.Sprite {
doAction() { doAction() {
const speed = 200; const speed = 200;
egret.Tween.get(this.boyhand).to({ rotation: -50 }, speed).to({ rotation: 0 }, speed); if (this.boyhand) {
egret.Tween.get(this.girlhand).to({ rotation: 50 }, speed).to({ rotation: 0 }, speed); egret.Tween.get(this.boyhand).to({ rotation: -50 }, speed).to({ rotation: 0 }, speed);
}
if (this.girlhand) {
egret.Tween.get(this.girlhand).to({ rotation: 50 }, speed).to({ rotation: 0 }, speed);
}
} }
addPic(picData: egret.SpriteSheet, key: string, x = 0, y = 0, anchorOffsetX = 0, anchorOffsetY = 0) { addPic(picData: egret.SpriteSheet, key: string, x = 0, y = 0, anchorOffsetX = 0, anchorOffsetY = 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment