UserButtonData.ts 608 B

12345678910111213141516171819
  1. /**
  2. * @format
  3. * @class UserButtonData
  4. * @deprecated 此类只能和UserButton一起使用才有效,此组件为UserButton的数据组件
  5. */
  6. const {ccclass, property} = cc._decorator
  7. @ccclass
  8. export default class UserButtonData extends cc.Component {
  9. @property({tooltip: '是否需要开启屏蔽连续点击行为'})
  10. public openContinuous: boolean = true
  11. @property({type: cc.Float, tooltip: '开启屏蔽连续点击行为的间隔时间'})
  12. public continuousTime: number = 0.2
  13. @property({tooltip: '是否需要开启多点触摸功能'})
  14. public multiTouch: boolean = false
  15. }