ComFrameAni.ts 541 B

1234567891011121314151617
  1. /** @format */
  2. import {ComType, EntityIndex} from '../lib/Const'
  3. import {ECSComponent} from '../lib/ECSComponent'
  4. import {IFrameAniConfig} from '../../config/FrameAniConfig'
  5. @ECSComponent(ComType.ComFrameAni)
  6. export class ComFrameAni {
  7. aniConfig: IFrameAniConfig
  8. public countDown: number // 动画剩余时间
  9. public dirty: boolean
  10. role: EntityIndex //特效对象
  11. lineStartPos: cc.Vec2 //起始点
  12. lineStartEntity: EntityIndex //连线特效起点对象
  13. lineEndEntity: EntityIndex //连线特效终点对象
  14. }