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