// Learn TypeScript: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html // Learn Attribute: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html import { ryw_Event } from "../../FrameWork/Event/EventEnum"; import EventMgr from "../../FrameWork/Event/EventMgr"; import User from "../../FrameWork/User/User"; import Common5 from "../../Platform/th/Common5"; import UiBase from "../GameBase/UiBase"; import LevelUpManager from "../Manager/LevelUpManager"; import MiShuManager from "../Manager/MiShuManager"; import UserManager from "../Manager/UserManager"; import PrefabManage, { GameType } from "../PrefabManager/PrefabManage"; const {ccclass, property} = cc._decorator; @ccclass export default class NewClass extends UiBase { // LIFE-CYCLE CALLBACKS: // onLoad () {} curSignDay:number = 0 signConfig = [ { goodType:1, goodName:'第一天', priceNum:1000000, GoodNum:1, descStr:'自动点击' }, { goodType:9999, goodName:'第二天', priceNum:5, GoodNum:1,descStr:'海量金币' }, { goodType:2, goodName:'第三天', priceNum:20, GoodNum:1, descStr:'等级+20' }, { goodType:3, goodName:'第四天', mishuId:16, mishuName:'晴萱', priceNum:0, GoodNum:1, descStr:'' }, { goodType:9999, goodName:'第五天', priceNum:5, GoodNum:1,descStr:'海量金币' }, { goodType:2, goodName:'第六天', priceNum:40, GoodNum:1,descStr:'等级+40' }, { goodType:3, goodName:'第七天', mishuId:17, mishuName:'绮罗', priceNum:0, GoodNum:1,descStr:'' }, ] start () { MiShuManager.initManager() this.curSignDay = 0 let signList = User.getSignList() for(let i = 0; i<7; i++){ if(signList[i] == 0){ this.curSignDay = i break } } this.refreshView() let level = User.getAutoLevel() // if(level==0){ // PrefabManage.preloadPrefabByType(GameType.AutoLevelUpTips) // } } refreshView(){ let signList = User.getSignList() for(let i = 0; i{ // prefab.getComponent('MishuReward').setViewDate(mishuId, true, 'lock') // }) } this.refreshView() } } // update (dt) {} }