ddd
This commit is contained in:
21
assets/script/game/skills/seCom.ts
Normal file
21
assets/script/game/skills/seCom.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user