GuideTips1.ts 469 B

1234567891011121314151617181920212223242526
  1. import BaseEvent from "../base/BaseEvent";
  2. const {ccclass, property} = cc._decorator;
  3. /**
  4. * 提示类引导
  5. * 踩上去后消失
  6. */
  7. @ccclass
  8. export default class GuideTips1 extends BaseEvent {
  9. @property(cc.Node)
  10. mNode: cc.Node = null;
  11. onLoad(){
  12. cc.log(this)
  13. super.onLoad()
  14. }
  15. /**
  16. * 主角进入碰撞区域
  17. * @param tag 碰撞组件编号
  18. */
  19. public onBegin(tag:number){
  20. this.node.destroy()
  21. }
  22. }