22 lines
340 B
TypeScript
22 lines
340 B
TypeScript
import { _decorator, Component, Node } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('unlock')
|
|
export class unlockComp extends Component {
|
|
start() {
|
|
|
|
}
|
|
|
|
doCancel() {
|
|
this.node.active = false
|
|
}
|
|
doActive() {
|
|
this.node.active = true
|
|
}
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
}
|
|
|
|
|