EquipItem.ts 649 B

123456789101112131415161718192021222324252627
  1. import Main from "../../../main/Main";
  2. import GoodItem from "../../common/GoodItem";
  3. import { EquipAttr } from "../../data/udata/Player";
  4. /**
  5. * 装备节点
  6. */
  7. const {ccclass, property} = cc._decorator;
  8. @ccclass
  9. export default class EquipItem extends GoodItem {
  10. public initEquip(main:Main,equip:EquipAttr){
  11. super.initEquip(main,equip)
  12. }
  13. public setLock(){
  14. this.equip = null;
  15. this.equipData = null;
  16. this.data = null;
  17. this.good = null;
  18. this.mBG.spriteFrame = this.mBGs[1];
  19. this.mNullNode.active = false;
  20. this.callback = null;
  21. }
  22. }