Commit b517119c authored by zjz1994's avatar zjz1994

猩猩动画暂存

parent 604ab515
This diff is collapsed.
This diff is collapsed.
...@@ -25,6 +25,7 @@ import { Chapters20 } from "./Chapter20"; ...@@ -25,6 +25,7 @@ import { Chapters20 } from "./Chapter20";
import { Chapters21 } from "./Chapter21"; import { Chapters21 } from "./Chapter21";
import { Chapters22 } from "./Chapter22"; import { Chapters22 } from "./Chapter22";
import { Chapters23 } from "./Chapter23"; import { Chapters23 } from "./Chapter23";
import { Chapters24 } from "./Chapter24";
//所有的关卡 //所有的关卡
const chapters: ChapterData[] = [].concat( const chapters: ChapterData[] = [].concat(
...@@ -51,6 +52,7 @@ const chapters: ChapterData[] = [].concat( ...@@ -51,6 +52,7 @@ const chapters: ChapterData[] = [].concat(
Chapters21, Chapters21,
Chapters22, Chapters22,
Chapters23, Chapters23,
Chapters24,
) )
// console.log(chapters) // console.log(chapters)
chapters.forEach((chapter,index) => { chapters.forEach((chapter,index) => {
...@@ -71,7 +73,8 @@ chapters.forEach((chapter,index) => { ...@@ -71,7 +73,8 @@ chapters.forEach((chapter,index) => {
*/ */
export function getChapterData(index: number): ChapterData { export function getChapterData(index: number): ChapterData {
//没有数据就返回第一关数据 //没有数据就返回第一关数据
return chapters[index] || chapters[601]; return chapters[604];
return chapters[index] || chapters[604];
} }
var a = { var a = {
......
This diff is collapsed.
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