大侠
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
655 B

import { _decorator, Component, director, Label, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('GAME_INFO')
export class GAME_INFO extends Component {
@property(Label)
Tips:Label;
static Model:string = "";
static Collider:string = "";
UpdateText(){
if(true){
this.Tips.string = "";
return;
};
let tips = "";
tips += GAME_INFO.Model + "\n";
tips += GAME_INFO.Collider + "\n";
this.Tips.string = tips;
}
update(deltaTime: number) {
if(!(director.getTotalFrames()%2)){
this.UpdateText();
}
}
}