Commit 94f424b7 authored by haiyoucuv's avatar haiyoucuv

init

parent 56e9f698
...@@ -203,8 +203,10 @@ export class Snake extends Component { ...@@ -203,8 +203,10 @@ export class Snake extends Component {
if (!this.isLife) return; if (!this.isLife) return;
const propTs = otherCollider.getComponent(PropBase); const propTs = otherCollider.getComponent(PropBase);
propTs.beEaten(this); if (propTs) {
propTs.recycle(); propTs.beEaten(this);
propTs.recycle();
}
}) })
.start(); .start();
} }
......
...@@ -59,7 +59,7 @@ export class Start extends Component { ...@@ -59,7 +59,7 @@ export class Start extends Component {
setProgress(progress: number) { setProgress(progress: number) {
this.progressBar.progress = progress; this.progressBar.progress = progress;
this.progressTxt.string = `${Math.round(progress * 100)}%`; // this.progressTxt.string = `游戏加载中 ${Math.round(progress * 100)}%`;
} }
loadZipBundle(from: number, to: number) { loadZipBundle(from: number, to: number) {
......
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