Commit f9363f0b authored by 杨一航's avatar 杨一航

feat: v0.91

parent 2a109b3d
...@@ -17244,7 +17244,7 @@ ...@@ -17244,7 +17244,7 @@
"__id__": 332 "__id__": 332
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 354 "__id__": 354
......
...@@ -42,7 +42,7 @@ export class AI { ...@@ -42,7 +42,7 @@ export class AI {
await asyncDelay(time); await asyncDelay(time);
let index = 0; let index = 0;
if (Math.random() <= this.anspronum) { if (Math.random() <= 1 - this.anspronum) {
index = rigthIndex; index = rigthIndex;
} else { } else {
index = Math.floor(Math.random() * 3.99); index = Math.floor(Math.random() * 3.99);
......
...@@ -50,11 +50,14 @@ export default class EndLayer extends cc.Component { ...@@ -50,11 +50,14 @@ export default class EndLayer extends cc.Component {
} }
init(data, mydata, otherData) { init(data, mydata, otherData) {
this.loseRoot.active = false;
this.winRoot.active = false;
let root = this.loseRoot; let root = this.loseRoot;
if (data.blueRight >= data.redRight) { if (data.blueRight >= data.redRight) {
this.winRoot.active = true; root = this.winRoot;
} }
root.active = true;
root.opacity = 0; root.opacity = 0;
cc.tween(root).delay(0.5).to(1, { opacity: 255 }).start(); cc.tween(root).delay(0.5).to(1, { opacity: 255 }).start();
......
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