取消礼花
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m13s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m13s
This commit is contained in:
parent
99ede74d03
commit
1e724360fd
File diff suppressed because it is too large
Load Diff
@ -90,7 +90,6 @@ export class SlotBar extends Component {
|
||||
private turboBtnAni: Animation = null;
|
||||
|
||||
private freeSpinBg: Node = null;
|
||||
private spin_lihua: sp.Skeleton = null
|
||||
private left_1: Node = null;
|
||||
private leftCount: Label = null;
|
||||
private left_2: Node = null;
|
||||
@ -141,7 +140,6 @@ export class SlotBar extends Component {
|
||||
this.menuBtn = this.btns1.getChildByName("ic_menu").getComponent(Button);
|
||||
|
||||
this.freeSpinBg = this.node.getChildByName("FreeSpinBg");
|
||||
this.spin_lihua = this.freeSpinBg.getChildByName("spin_lihua").getComponent(sp.Skeleton);
|
||||
this.left_1 = this.freeSpinBg.getChildByName("left_1");
|
||||
this.left_2 = this.freeSpinBg.getChildByName("left_2");
|
||||
this.leftCount = this.left_1
|
||||
@ -684,10 +682,6 @@ export class SlotBar extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
playSpin_lihua() {
|
||||
this.spin_lihua.setAnimation(0, 'animation', false)
|
||||
}
|
||||
|
||||
exitFreeSpin() {
|
||||
this.freeSpinBg.active = false;
|
||||
this.btns1.active = this.BTNS1_ACTIVE;
|
||||
|
||||
@ -875,10 +875,6 @@ export class SlotScene extends Component {
|
||||
// delay = 1.2
|
||||
// }
|
||||
|
||||
//小游戏内单次滚动结算中奖时触发一个礼花特效
|
||||
if (isFreeSpin) {
|
||||
this.slotBar.playSpin_lihua()
|
||||
}
|
||||
|
||||
this.scheduleOnce(() => {
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ import { _decorator, Component, Node, Prefab, sp, Sprite, UITransform, Vec3, v3,
|
||||
import { ICON_STATE, ICON_WIDTH } from './Define';
|
||||
import { GameDataManager } from 'db://assets/Loading/scripts/manager/GameDataManager';
|
||||
import { NodePoolManager } from 'db://assets/Loading/scripts/manager/NodePoolManager';
|
||||
import { RollerManager } from './RollerManager';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
|
||||
@ -302,6 +303,18 @@ export class Icon extends Component {
|
||||
transform.width = ICON_WIDTH;
|
||||
}
|
||||
|
||||
// let rollerManager = this.node.parent.parent.parent.parent.parent.parent.getComponent(RollerManager)
|
||||
// let scatterLayer = rollerManager.node.parent.getChildByName('scatterLayer')
|
||||
// if (this._iconId == 1) {
|
||||
// let worldPos = rollerManager.getIconWorldPosition(pos);
|
||||
// let localPos = scatterLayer.getComponent(UITransform).convertToNodeSpaceAR(worldPos);
|
||||
// this.node.parent = scatterLayer;
|
||||
// this.node.setPosition(localPos);
|
||||
// }
|
||||
// if (this._iconId == 1) {
|
||||
// this.node.parent = scatterLayer;
|
||||
// this.node.setPosition(this.getWorldPosition());
|
||||
// }
|
||||
|
||||
|
||||
// 重置状态
|
||||
|
||||
Loading…
Reference in New Issue
Block a user