CardStarSuccessView.ts 420 B

123456789101112131415161718
  1. import ViewObject from "../../../main/ViewObject";
  2. import CardItem from "./item/CardItem";
  3. /**
  4. * 神卡升星成功
  5. */
  6. const {ccclass, property} = cc._decorator;
  7. @ccclass
  8. export default class CardStarSuccessView extends ViewObject{
  9. @property(CardItem)
  10. mCardItem: CardItem = null;
  11. public init(cardItem:CardItem){
  12. this.mCardItem.init(this.main,cardItem.godCardAttr)
  13. }
  14. }