英雄设定大概完成,接下来需要借鉴其他热门游戏设定,再修改
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user