This commit is contained in:
2024-08-16 08:45:09 +08:00
parent c67a149620
commit dc12cea962
20 changed files with 1256 additions and 558 deletions

View File

@@ -60,6 +60,7 @@ export class Hero extends ecs.Entity {
hero_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){
var mv = node.getComponent(MonsterViewComp)!;
mv.hero_uuid=uuid;
mv.speed =mv.ospeed = CardSet[uuid].speed;
mv.hero_name= CardSet[uuid].name;
mv.hp= mv.hp_max = CardSet[uuid].hp;