| 12345678910111213141516171819202122 |
- import { _decorator, Component, Label, Node } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('UpdateLayer')
- export class UpdateLayer extends Component {
- public static instance:UpdateLayer=null;
- start() {
- UpdateLayer.instance=this;
- this.node.getComponent(Label).string='1';
- }
- update(deltaTime: number) {
-
- }
- public Update_Layer(layer:number){
- this.node.getComponent(Label).string=layer.toString();
- }
- }
|