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(); } } }