小游戏加载界面修改
This commit is contained in:
parent
9bcb92de2d
commit
5170e7d47a
@ -987,6 +987,8 @@
|
|||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "8a3n1j18JJXaB1BGz1/GTN",
|
"fileId": "8a3n1j18JJXaB1BGz1/GTN",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": null
|
"nestedPrefabInstanceRoots": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1026,6 +1028,8 @@
|
|||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "df4DMfteBFe5liYHct5j2I",
|
"fileId": "df4DMfteBFe5liYHct5j2I",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": null
|
"nestedPrefabInstanceRoots": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1547,6 +1551,8 @@
|
|||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "69qSF6pclMua3UFHCUimjL",
|
"fileId": "69qSF6pclMua3UFHCUimjL",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": null
|
"nestedPrefabInstanceRoots": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -10,6 +10,7 @@ export class FreeSpinEnter extends Component {
|
|||||||
freeSpinEnterPre: Prefab = null;
|
freeSpinEnterPre: Prefab = null;
|
||||||
|
|
||||||
freeSpinEnterUI: Node = null;
|
freeSpinEnterUI: Node = null;
|
||||||
|
btnNode: Node | null = null;
|
||||||
|
|
||||||
freeSpinEnterSpine: sp.Skeleton | null = null;
|
freeSpinEnterSpine: sp.Skeleton | null = null;
|
||||||
Node_1: Node | null = null;
|
Node_1: Node | null = null;
|
||||||
@ -40,14 +41,14 @@ export class FreeSpinEnter extends Component {
|
|||||||
let contentNode = this.Node_1.getChildByName('ContentNode');
|
let contentNode = this.Node_1.getChildByName('ContentNode');
|
||||||
this.freeSpinEnterContentSp = contentNode.getChildByName('SpriteCONTENT').getComponent(Sprite);
|
this.freeSpinEnterContentSp = contentNode.getChildByName('SpriteCONTENT').getComponent(Sprite);
|
||||||
|
|
||||||
let btnNode = this.Node_1.getChildByName('BtnNode');
|
this.btnNode = this.Node_1.getChildByName('BtnNode');
|
||||||
this.btn = btnNode.getChildByName('BtnStart').getComponent(Button);
|
this.btn = this.btnNode.getChildByName('BtnStart').getComponent(Button);
|
||||||
|
|
||||||
this.btn.node.on(Button.EventType.CLICK, this.onClose, this);
|
this.btn.node.on(Button.EventType.CLICK, this.onClose, this);
|
||||||
|
|
||||||
this.freeCount = freeCount;
|
this.freeCount = freeCount;
|
||||||
this.freeCountLabel.string = `${freeCount}`;
|
this.freeCountLabel.string = `${freeCount}`;
|
||||||
this.btn.node.active = false;
|
this.btnNode.active = false;
|
||||||
this.node.addChild(this.freeSpinEnterUI);
|
this.node.addChild(this.freeSpinEnterUI);
|
||||||
this.playAnimation();
|
this.playAnimation();
|
||||||
this.closeCallBack = closeCallBack;
|
this.closeCallBack = closeCallBack;
|
||||||
@ -73,7 +74,7 @@ export class FreeSpinEnter extends Component {
|
|||||||
|
|
||||||
this.freeSpinEnterSpine.setCompleteListener(() => {
|
this.freeSpinEnterSpine.setCompleteListener(() => {
|
||||||
this.freeSpinEnterSpine.setAnimation(0, 'loop', true);
|
this.freeSpinEnterSpine.setAnimation(0, 'loop', true);
|
||||||
this.btn.node.active = true;
|
this.btnNode.active = true;
|
||||||
this.scheduleOnce(() => {
|
this.scheduleOnce(() => {
|
||||||
this.onClose(false);
|
this.onClose(false);
|
||||||
}, 5)
|
}, 5)
|
||||||
@ -86,7 +87,7 @@ export class FreeSpinEnter extends Component {
|
|||||||
AudioManager.instance.playSFX('Total_Settle_Collect_Click');
|
AudioManager.instance.playSFX('Total_Settle_Collect_Click');
|
||||||
}
|
}
|
||||||
this.btn.node.off(Button.EventType.CLICK, this.onClose, this);
|
this.btn.node.off(Button.EventType.CLICK, this.onClose, this);
|
||||||
this.btn.node.active = false;
|
this.btnNode.active = false;
|
||||||
this.unscheduleAllCallbacks();
|
this.unscheduleAllCallbacks();
|
||||||
this.fadeOutScoreLabel(0.5, 0.5);
|
this.fadeOutScoreLabel(0.5, 0.5);
|
||||||
this.freeSpinEnterSpine.clearTracks();
|
this.freeSpinEnterSpine.clearTracks();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user