ComTransform.ts 316 B

123456789101112131415
  1. /** @format */
  2. import {ComType} from '../lib/Const'
  3. import {ECSComponent} from '../lib/ECSComponent'
  4. @ECSComponent(ComType.ComTransform)
  5. export class ComTransform {
  6. public dir = cc.v2(1, 0) //方向向量
  7. public x = 0
  8. public y = 0
  9. public width = 0
  10. public height = 0
  11. public halfHeight = 0
  12. }