auto_toastMessage.ts 433 B

1234567891011121314151617
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_toastMessage extends cc.Component {
  4. toastMessage: cc.Node;
  5. toastBg: cc.Node;
  6. message: cc.Node;
  7. public static URL:string = "db://assets/resources/prefab/common/toastMessage.prefab"
  8. onLoad () {
  9. this.toastMessage = this.node
  10. this.toastBg = this.toastMessage.getChildByName("toastBg");
  11. this.message = this.toastBg.getChildByName("message");
  12. }
  13. }