mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交锻造系统
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import PetEquipData from '../../../data/PetEquipData';
|
||||
import { app } from '../../../App';
|
||||
import { GUI } from '../../UIConfig';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
|
||||
//锻造台
|
||||
@ccclass('MainForgingBench')
|
||||
export class MainForgingBench extends Component {
|
||||
|
||||
//点击锻造
|
||||
async onClickForging(){
|
||||
if(!PetEquipData.getIns().isForgingBenchPet){
|
||||
app.layer.Open(GUI.Tips,{text:"请选择锻造宠"});
|
||||
return;
|
||||
}
|
||||
PetEquipData.getIns().forging();
|
||||
app.layer.Open(GUI.PetEquipForgingPopupView);
|
||||
}
|
||||
|
||||
//点击锻造宠
|
||||
async onClickForgingPet(){
|
||||
app.layer.Open(GUI.PetRadioView);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "9b2f1109-b0bc-4cfc-978e-768af2a09b25",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user