GuideSystem.ts 491 B

1234567891011121314151617181920212223
  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. this.guides = gData.guideData.getGuidesByID(id);
  11. this.crtStep = -1;
  12. this.nextStep();
  13. }
  14. private nextStep() {
  15. this.crtStep++;
  16. this.crtGuide = this.guides[this.crtStep];
  17. }
  18. }