dd
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import { _decorator, Component, Node ,director,game} from 'cc';
|
||||
import { oops } from '../../../../extensions/oops-plugin-framework/assets/core/Oops';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('unlock')
|
||||
@@ -9,9 +10,11 @@ export class unlockComp extends Component {
|
||||
|
||||
doCancel() {
|
||||
this.node.active = false
|
||||
|
||||
}
|
||||
doActive() {
|
||||
this.node.active = true
|
||||
|
||||
}
|
||||
update(deltaTime: number) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user