Commit 572da50a authored by haiyoucuv's avatar haiyoucuv

init

parent b325958b
......@@ -23,7 +23,7 @@ export class ReviewPanel extends Panel {
@property(SpriteFrame) shareSf: SpriteFrame = null;
@property(SpriteFrame) exchangeSf: SpriteFrame = null;
type = "share";
type: "share" | "green" | "credits" = "share";
onLoad() {
super.onLoad();
......@@ -42,6 +42,8 @@ export class ReviewPanel extends Panel {
this.type = "credits";
}
console.log("解锁类型", this.type);
}
start(): void {
......@@ -66,7 +68,7 @@ export class ReviewPanel extends Panel {
})
ok = _asyncThrottle(async () => {
const { type } = this.data;
const { type } = this;
AudioMgr.ins.playOneShot(AudioClipName.button_ok);
const lockIndex = MainGame.ins.getLockPoints();
if (type == "share") {
......
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