Commit a0258975 authored by liujiangnan's avatar liujiangnan

debug

parent 2f6e9dc0
......@@ -414,12 +414,16 @@ export abstract class middleLayerBase extends cc.Component {
console.log("====goNextPage====");
this.goTarIndexPage(this.courseIndex + 1);
}
goTarIndexPage(index) {
goTarIndexPage(index, isRestart=false) {
if (this.IS_BUNDLE_LOADING) {
return;
}
this.IS_BUNDLE_LOADING = true;
if (!this.courses || index == this.courseIndex || index < 0 || index > this.courses.length - 1) {
if (!this.courses || index < 0 || index > this.courses.length - 1) {
this.IS_BUNDLE_LOADING = false;
return;
}
if (index == this.courseIndex && !isRestart) {
this.IS_BUNDLE_LOADING = false;
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment