tgcom修复, todo 其他技能文件

This commit is contained in:
walkpan
2025-01-06 13:30:58 +08:00
parent 125f0cb55e
commit a9a7f076f4
5 changed files with 17 additions and 14 deletions

View File

@@ -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)
}