场景技能 环境设置完成,下步 技能执行

This commit is contained in:
pan@work
2024-11-20 10:56:22 +08:00
parent d930cb1b81
commit 9e7cf05231
6 changed files with 2142 additions and 4655 deletions

View File

@@ -10,8 +10,7 @@ const { ccclass, property } = _decorator;
export class MSkillComp extends CCComp {
/** 视图层逻辑代码分离演示 */
start() {
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
// this.on(ModuleEvent.Cmd, this.onHandler, this);
console.log("MSkillComp start");
}

View File

@@ -83,7 +83,7 @@ export class TooltipCom extends CCComp {
// this.alive_time = 2
tween(this.node).to(
this.alive_time,
{position:v3(this.node.position.x-20,this.node.position.y), },
{position:v3(this.node.position.x,this.node.position.y), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"