page_tishi.ts 345 B

1234567891011121314151617
  1. import { _decorator, Component, Label, Node } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('page_tishi')
  4. export class page_tishi extends Component {
  5. @property(Label)
  6. txt_tishi: Label = null;
  7. Init(data: string) {
  8. this.txt_tishi.string = data
  9. }
  10. OnClickExit() {
  11. this.node.destroy();
  12. }
  13. }