| 123456789101112131415161718192021222324252627 |
- /**收获界面数据类 */
- import { Data } from "../../../mk/data/Data";
- const { ccclass } = cc._decorator;
- @ccclass
- export default class HarvestData extends Data {
- configID = null;
- plantID = null;
- config = null;
- call = null;
- init_reward = false;
- openPanel(configID, plantID, call) {
- this.configID = configID;
- this.plantID = plantID;
- this.call = call;
- this.config = gData.gameData.getProductMap(this.plantID);
- mk.ui.openPanel('game/prefab/uiPanel/HarvestPanel');
- }
- setAdData(data) {
- super.setAdData(data);
- this.init_reward = true;
- }
- }
|