this.guideVideo.visible = true;
this.guideVideo.scale(0, 0);//先将教学动画缩放到0
Laya.Tween.to(this.guideVideo, { scaleX: 1.05, scaleY: 1.05 }, 500, Laya.Ease.quintOut, Laya.Handler.create(this, () => {
Laya.Tween.to(this.guideVideo, { scaleX: 1, scaleY: 1 }, 100, Laya.Ease.quintInOut);
}));//教学动画由小变大
this.guideVideo.play();
this.closeGuideBtn.once(Laya.Event.CLICK, this, () => {//给关闭按钮(图片)添加点击事件
this.maskGuide.visible = false;
this.guideVideo.visible = false;
GameDataManager.Instance.isGuided = true;
GameDataManager.Instance.saveData();
//GameDataManager.Instance.clearData();
if (this.isReady) {
this.playReadGo();
}
});
网友评论