PlotView.ts 658 B

1234567891011121314151617181920212223242526272829303132
  1. import FqLogin from "../login/FqLogin";
  2. import ViewObject from "../main/ViewObject";
  3. /**
  4. * 引导显示
  5. */
  6. const { ccclass, property } = cc._decorator;
  7. @ccclass
  8. export default class PlotView extends ViewObject {
  9. @property(cc.Node)
  10. plotList: cc.Node[] = [];
  11. private iIndex = 0;
  12. onLoad() {
  13. FqLogin.commitEvent(`manhua${this.iIndex}`, "", "")
  14. }
  15. public onclick() {
  16. this.iIndex++;
  17. if (this.iIndex > this.plotList.length - 1) {
  18. this.exitDistroy()
  19. return
  20. }
  21. this.plotList[this.iIndex].active = true;
  22. FqLogin.commitEvent(`manhua${this.iIndex}`, "", "")
  23. }
  24. }