feat: 完善挑战结算页面
This commit is contained in:
@@ -24,6 +24,9 @@ export class main extends Component {
|
||||
@property({ type: Prefab, tooltip: '挑战数据页面预制体' })
|
||||
pagePKDataPrefab: Prefab | null = null;
|
||||
|
||||
@property({ type: Prefab, tooltip: '挑战结算页面预制体' })
|
||||
pagePKEndPrefab: Prefab | null = null;
|
||||
|
||||
@property({ type: Prefab, tooltip: 'Toast 预制体' })
|
||||
toastPrefab: Prefab | null = null;
|
||||
|
||||
@@ -83,6 +86,14 @@ export class main extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.pagePKEndPrefab) {
|
||||
ViewManager.instance.register('PagePKEnd', {
|
||||
prefab: this.pagePKEndPrefab,
|
||||
cache: true,
|
||||
zIndex: 3
|
||||
});
|
||||
}
|
||||
|
||||
// 初始化 Toast 管理器
|
||||
if (this.toastPrefab) {
|
||||
ToastManager.instance.init(this.toastPrefab, this.node);
|
||||
|
||||
Reference in New Issue
Block a user