清理 skills下的无效文件,有用的迁移到skill目录
This commit is contained in:
25
assets/script/game/skill/timedCom.ts
Normal file
25
assets/script/game/skill/timedCom.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import { SkillSet } from '../common/config/SkillSet';
|
||||
import { smc } from '../common/SingletonModuleComp';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('timedCom')
|
||||
export class timedCom extends Component {
|
||||
time = 0.3;
|
||||
cd: number = 0;
|
||||
ap: number = 0;
|
||||
|
||||
start() {
|
||||
|
||||
}
|
||||
|
||||
update(deltaTime: number) {
|
||||
this.time -= deltaTime;
|
||||
if(this.time <= 0)
|
||||
{
|
||||
this.node.destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user