英雄可升级动画
This commit is contained in:
@@ -6,6 +6,7 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
import { HeroInfo } from "../common/config/heroSet";
|
||||
import { ColorSet } from "../common/config/BoxSet";
|
||||
import { SlvUp } from "../common/config/RoleSet";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -51,6 +52,9 @@ export class HeroCardComp extends CCComp {
|
||||
this.node.getChildByName("lock").active=false
|
||||
slv.getChildByName("slv").getComponent(Label).string=smc.heros[this.h_uuid].slv.toString()
|
||||
}
|
||||
let slvneed=HeroInfo[this.h_uuid].slvexp*smc.heros[this.h_uuid].slv
|
||||
let slvnum=smc.heros[this.h_uuid].num
|
||||
this.node.getChildByName("up").active=slvnum>=slvneed
|
||||
switch(HeroInfo[this.h_uuid].quality){
|
||||
case 1:
|
||||
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["BLUE"]);
|
||||
|
||||
Reference in New Issue
Block a user