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

feat: v0.91

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