22 lines
513 B
TypeScript
22 lines
513 B
TypeScript
import { _decorator, Component, Node } from 'cc';
|
|
import { SkillCom } from './SkillCom';
|
|
import { SkillSet } from '../common/config/SkillSet';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('seCom')
|
|
export class seCom extends Component {
|
|
base:SkillCom = null
|
|
|
|
start() {
|
|
this.base =this.node.getComponent(SkillCom)
|
|
}
|
|
|
|
update(deltaTime: number) {
|
|
if (this.base.is_destroy) {
|
|
console.log("执行第二技能",SkillSet[this.base.s_uuid].sonsk)
|
|
}
|
|
}
|
|
}
|
|
|
|
|