diff options
author | Li Jin <dragon-fly@qq.com> | 2025-03-19 14:52:54 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2025-03-19 14:52:54 +0800 |
commit | 28bae6517f43c384a828df62b727517e26b3af9b (patch) | |
tree | d8c54b0f4a43e2b2dce3cafdae869f535f4c85aa /spec/outputs/macro.lua | |
parent | cefe5e3e8e9fa33b5f644edb5f34d0bed42ec402 (diff) | |
download | yuescript-0.27.1.tar.gz yuescript-0.27.1.tar.bz2 yuescript-0.27.1.zip |
Fixed issue #194, #195.v0.27.1
Diffstat (limited to 'spec/outputs/macro.lua')
-rw-r--r-- | spec/outputs/macro.lua | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/spec/outputs/macro.lua b/spec/outputs/macro.lua index aa74ed9..4d31574 100644 --- a/spec/outputs/macro.lua +++ b/spec/outputs/macro.lua | |||
@@ -191,13 +191,11 @@ end | |||
191 | do | 191 | do |
192 | local a = 8 | 192 | local a = 8 |
193 | a = (function() | 193 | a = (function() |
194 | local a | 194 | local a = 1 |
195 | a = 1 | ||
196 | return a + 1 | 195 | return a + 1 |
197 | end)() | 196 | end)() |
198 | a = a + (function() | 197 | a = a + (function() |
199 | local a | 198 | local a = 1 |
200 | a = 1 | ||
201 | return a + 1 | 199 | return a + 1 |
202 | end)() | 200 | end)() |
203 | print(a) | 201 | print(a) |
@@ -274,18 +272,12 @@ local result = ((((((origin.transform.root.gameObject:Parents()):Descendants()): | |||
274 | end)):Destroy() | 272 | end)):Destroy() |
275 | do | 273 | do |
276 | do | 274 | do |
277 | local _1 | 275 | local _1 = origin.transform.root.gameObject:Parents() |
278 | _1 = origin.transform.root.gameObject:Parents() | 276 | local _2 = _1:Descendants() |
279 | local _2 | 277 | local _3 = _2:SelectEnable() |
280 | _2 = _1:Descendants() | 278 | local _4 = _3:SelectVisible() |
281 | local _3 | 279 | local _5 = _4:TagEqual("fx") |
282 | _3 = _2:SelectEnable() | 280 | local _6 = _5:Where(function(x) |
283 | local _4 | ||
284 | _4 = _3:SelectVisible() | ||
285 | local _5 | ||
286 | _5 = _4:TagEqual("fx") | ||
287 | local _6 | ||
288 | _6 = _5:Where(function(x) | ||
289 | return x.name:EndsWith("(Clone)") | 281 | return x.name:EndsWith("(Clone)") |
290 | end) | 282 | end) |
291 | _6:Destroy() | 283 | _6:Destroy() |