define.coffee 565 B

123456789101112131415161718
  1. cc.Class {
  2. extends: cc.Component
  3. properties: {
  4. # foo:
  5. # default: null # The default value will be used only when the component attaching
  6. # to a node for the first time
  7. # type: cc
  8. # serializable: true # [optional], default is true
  9. # visible: true # [optional], default is true
  10. # displayName: 'Foo' # [optional], default is property name
  11. # readonly: false # [optional], default is false
  12. }
  13. update: (dt) ->
  14. # do your update here
  15. }