ResourceManager.ts 779 B

123456789101112131415161718192021222324252627
  1. const {ccclass, property} = cc._decorator;
  2. @ccclass
  3. export default class ResourceManager extends cc.Component {
  4. @property({type:cc.SpriteFrame})
  5. sf_arrowBlue:cc.SpriteFrame = null;
  6. @property({type:cc.SpriteFrame})
  7. sf_arrowPink:cc.SpriteFrame = null;
  8. @property({type:cc.Prefab})
  9. pf_matchView:cc.Prefab = null;
  10. @property({type:cc.Prefab})
  11. pf_settlePanel:cc.Prefab = null;
  12. @property({type:cc.Prefab})
  13. pf_boy:cc.Prefab = null;
  14. @property({type:cc.Prefab})
  15. pf_blood:cc.Prefab = null;
  16. @property({type:cc.AudioClip})
  17. ac_attack:cc.AudioClip = null;
  18. @property({type:cc.AudioClip})
  19. ac_bu:cc.AudioClip = null;
  20. @property({type:cc.AudioClip})
  21. ac_win:cc.AudioClip = null;
  22. onLoad(){
  23. window.rs = this;
  24. }
  25. }