23 lines
522 B
TypeScript
23 lines
522 B
TypeScript
import { _decorator, Component, Node, v3 } from 'cc';
|
|
import { SkillCom } from './SkillCom';
|
|
import { BoxSet } from '../common/config/BoxSet';
|
|
import { smc } from '../common/SingletonModuleComp';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('TgCom')
|
|
export class TgCom extends Component {
|
|
time:number = 0
|
|
cd:number = 0
|
|
base:SkillCom = null
|
|
start() {
|
|
this.base =this.node.getComponent(SkillCom)
|
|
this.node.setPosition(this.base.t_pos)
|
|
}
|
|
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
}
|
|
|
|
|