英雄卡牌++
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { _decorator, Animation, AnimationClip, Component, Label, Node, resources } from 'cc';
|
||||
import { HeroInfo, HQuality } from '../common/config/heroSet';
|
||||
import { HeroInfo, HQuality, HType } from '../common/config/heroSet';
|
||||
import { smc } from '../common/SingletonModuleComp';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -38,6 +38,9 @@ export class HCardUICom extends Component {
|
||||
this.node.getChildByName("pg").active=hero_data.quality==HQuality.PURPLE
|
||||
this.node.getChildByName("y").active=hero_data.quality==HQuality.ORANGE
|
||||
this.node.getChildByName("yg").active=hero_data.quality==HQuality.ORANGE
|
||||
this.node.getChildByName("type").getChildByName("w").active=hero_data.type==HType.warrior
|
||||
this.node.getChildByName("type").getChildByName("r").active=hero_data.type==HType.remote
|
||||
this.node.getChildByName("type").getChildByName("m").active=hero_data.type==HType.mage
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user