tgcom修复, todo 其他技能文件
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { _decorator, Component, Node, v3 } from 'cc';
|
||||
import { SkillCom } from './SkillCom';
|
||||
import { BoxSet } from '../common/config/BoxSet';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('TgCom')
|
||||
@@ -9,6 +10,9 @@ export class TgCom extends Component {
|
||||
base:SkillCom = null
|
||||
start() {
|
||||
this.base =this.node.getComponent(SkillCom)
|
||||
if(this.base.box_group==BoxSet.MONSTER){
|
||||
this.base.t_pos.x=-1*this.base.t_pos.x
|
||||
}
|
||||
this.node.setPosition(this.base.t_pos)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user