Commit 26340501 authored by Tt's avatar Tt

点点效果

parent 0318c4ca
...@@ -2981,7 +2981,7 @@ ...@@ -2981,7 +2981,7 @@
"__id__": 55 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 59 "__id__": 59
...@@ -3075,7 +3075,7 @@ ...@@ -3075,7 +3075,7 @@
"__id__": 55 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 61 "__id__": 61
...@@ -3169,7 +3169,7 @@ ...@@ -3169,7 +3169,7 @@
"__id__": 55 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 63 "__id__": 63
......
...@@ -44,8 +44,11 @@ cc.Class({ ...@@ -44,8 +44,11 @@ cc.Class({
if (!this.p0) return; if (!this.p0) return;
this.count++; this.count++;
let m = Math.floor(this.count / 40) % 4; let m = Math.floor(this.count / 40) % 4;
this[`p0`].active = (m >= 1); this[`p0`].scaleX = m == 1 ? 1.3 : 1.0;
this[`p1`].active = (m >= 2); this[`p0`].scaleY = m == 1 ? 1.3 : 1.0;
this[`p2`].active = (m >= 3); this[`p1`].scaleX = m == 2 ? 1.3 : 1.0;
this[`p1`].scaleY = m == 2 ? 1.3 : 1.0;
this[`p2`].scaleX = m == 3 ? 1.3 : 1.0;
this[`p2`].scaleY = m == 3 ? 1.3 : 1.0;
}, },
}); });
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