Commit 572da50a authored by haiyoucuv's avatar haiyoucuv

init

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