|
@@ -55,6 +55,9 @@ export class box extends base {
|
|
|
let box_world=this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
|
|
|
let p = this.mCar.node.parent.getComponent(UITransform).convertToNodeSpaceAR(box_world)
|
|
|
this.mCar.getGame().showBoom(p)
|
|
|
+ if(isUseBuff){
|
|
|
+ this.mData.pos = this.getWorldPos()
|
|
|
+ }
|
|
|
this.removeSelf()
|
|
|
isUseBuff = true
|
|
|
}else{
|
|
@@ -65,7 +68,6 @@ export class box extends base {
|
|
|
|
|
|
if(call!=null){
|
|
|
if(isUseBuff){
|
|
|
- this.mData.pos = this.getWorldPos()
|
|
|
call(this.mData,isKill,this.scores)
|
|
|
}else{
|
|
|
call()
|