英雄设定大概完成,接下来需要借鉴其他热门游戏设定,再修改

This commit is contained in:
panw
2025-01-21 10:53:07 +08:00
parent 478cf13f5e
commit 34039c3ca7
19 changed files with 1501 additions and 309 deletions

View File

@@ -5,13 +5,13 @@ const { ccclass, property } = _decorator;
export class BuffGet extends Component {
start() {
this.scheduleOnce(()=>{
tween(this.node).to( 0.1,
{ position: new Vec3(this.node.position.x,this.node.position.y+50) },
tween(this.node).to( 0.2,
{ position: new Vec3(this.node.position.x,this.node.position.y+100) },
{
onComplete:()=>{ this.node.destroy() }
}
).start();
}, 1);
}, 3);
}
init(name:string){
this.node.getChildByName("ap").active=(name=="ap")