老的ui 依赖完全去除
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
import { _decorator, Component, Node, tween, v3, Vec3 } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('BuffGet')
|
||||
export class BuffGet extends Component {
|
||||
start() {
|
||||
this.scheduleOnce(()=>{
|
||||
tween(this.node).to( 0.2,
|
||||
{ position: new Vec3(this.node.position.x,this.node.position.y+100) },
|
||||
{
|
||||
onComplete:()=>{ this.node.destroy() }
|
||||
}
|
||||
).start();
|
||||
}, 3);
|
||||
}
|
||||
init(name:string){
|
||||
this.node.getChildByName("ap").active=(name=="ap")
|
||||
this.node.getChildByName("cd").active=(name=="cd")
|
||||
this.node.getChildByName("def").active=(name=="def")
|
||||
this.node.getChildByName("hp").active=(name=="hp")
|
||||
this.node.getChildByName("crit").active=(name=="crit")
|
||||
this.node.getChildByName("dodge").active=(name=="dodge")
|
||||
this.node.getChildByName("deap").active=(name=="deap")
|
||||
this.node.getChildByName("decd").active=(name=="decd")
|
||||
this.node.getChildByName("dedef").active=(name=="dedef")
|
||||
this.node.getChildByName("dehp").active=(name=="dehp")
|
||||
this.node.getChildByName("decrit").active=(name=="decrit")
|
||||
this.node.getChildByName("dedodge").active=(name=="dedodge")
|
||||
}
|
||||
update(deltaTime: number) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "28a19abf-3818-4e24-92af-0e3c0c05299b",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
Reference in New Issue
Block a user