添加了几个英雄
This commit is contained in:
@@ -75,7 +75,7 @@ export class MonViewComp extends CCComp {
|
||||
shield_max:number = 200;
|
||||
shield_time:number = 0; //护盾持续时间
|
||||
|
||||
box_group:number = 2;
|
||||
box_group:number = BoxSet.MONSTER;
|
||||
atk_range:number = 150;
|
||||
private timer:Timer = new Timer(1); //计时器
|
||||
private m_timer:Timer = new Timer(0.1);
|
||||
@@ -91,7 +91,7 @@ export class MonViewComp extends CCComp {
|
||||
} /** 视图层逻辑代码分离演示 */
|
||||
start () {
|
||||
this.as.move()
|
||||
this.sprite = this.node.getChildByName("mon").getComponent(Sprite);
|
||||
this.sprite = this.node.getChildByName("anm").getComponent(Sprite);
|
||||
// this.node.getChildByName("top").setScale(this.scale,1);
|
||||
// this.node.getChildByName("atk").setScale(this.scale,1);
|
||||
// this.node.getChildByName("atk").getComponent(Label).string = this.atk.toString();
|
||||
|
||||
Reference in New Issue
Block a user