32 lines
1012 B
TypeScript
32 lines
1012 B
TypeScript
import { _decorator } from 'cc';
|
|
import { RedPointCoust } from '../RedPointCoust';
|
|
import RedPointBase from '../RedPointBase';
|
|
import RedMgrInst from '../RedPointManager';
|
|
const { ccclass, property } = _decorator;
|
|
@ccclass('RedPointActivity')
|
|
export class RedPointActivity extends RedPointBase {
|
|
initActivity() {
|
|
this.init(RedPointCoust.Activity);
|
|
}
|
|
|
|
updateActivityPoint() {
|
|
if (this.redTree == null) {
|
|
this.initActivity();
|
|
}
|
|
}
|
|
|
|
showRedPoint(key: string, id: number) {
|
|
// let m_taskPoint = this.redTree.findChild(key);
|
|
// if (m_taskPoint == null) {
|
|
// m_taskPoint = this.insertPoint(key, 0);
|
|
// }
|
|
// const t = ppdata.getInstance().Base.findActivityInfo(id)
|
|
// if (t) {
|
|
// if (t.m_bRed == true || t.m_iPrompt != 0) {
|
|
// RedMgrInst.updateRedPoint(key, true);
|
|
// } else {
|
|
// RedMgrInst.updateRedPoint(key, false);
|
|
// }
|
|
// }
|
|
}
|
|
} |