import User from "../../FrameWork/User/User"; import Common5 from "../../Platform/th/Common5"; import TaskManager, { MainTaskIdEnum } from "../JuQingChat/TaskManager"; const {ccclass, property} = cc._decorator; @ccclass export default class KaiKuangDataManage{ public static curMountingConfig = null public static setCurMountingConfig(config){ this.curMountingConfig = config } public static getCurMountingConfig(){ return this.curMountingConfig } public static curMountingPrice = null public static setCurMountingPrice(price){ this.curMountingPrice = price } public static getCurMountingPrice(){ return this.curMountingPrice } //所有山峰配置 public static getAllMountingConfig(){ return Common5.AllMountingConfig } //根据价格类型获取山峰 public static getMountingConfigByType(typeStr){ let allMountingConfig = this.getAllMountingConfig() let tempArr = [] for(var i=0;i0){ var index = Math.floor(Math.random()*length) temp.push(arr[index]) arr.splice(index,1) length-- count-- } // console.log("temp==",temp) return temp } //获取显示山峰 public static getShowMounting(){ let topArr = [] let midArr = [] let bottomArr = [] let leftMounting = User.getCurDayMountingArr() if(leftMounting.length <= 0){ topArr = this.randomNeedShowMounting2("高",2) midArr = this.randomNeedShowMounting("中",3) bottomArr = this.randomNeedShowMounting("低",3) for(var i=0;i=1){ Common5.kaiKuangVDIndex = 0 return null } let allMineralsConfig = this.getAllMineralsConfig() for(var i=0;i