GuideSystem.ts 615 B

1234567891011121314151617181920212223242526272829
  1. import { Guide } from "../../game/data/module/GuideData";
  2. /**
  3. * 新手引导模块
  4. */
  5. export default class GuideSystem {
  6. private guides: Guide[];
  7. private crtStep: number;
  8. private crtGuide: Guide;
  9. public open(id: number) {
  10. mk.ui.openPanel("module/guide/guide");
  11. this.guides = gData.guideData.getGuidesByID(id);
  12. this.crtStep = -1;
  13. this.nextStep();
  14. }
  15. private nextStep() {
  16. this.crtStep++;
  17. this.crtGuide = this.guides[this.crtStep];
  18. this.updateGuide();
  19. }
  20. private updateGuide(){
  21. }
  22. }