diff options
author | Li Jin <dragon-fly@qq.com> | 2023-10-17 22:34:06 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-10-17 22:34:06 +0800 |
commit | f61a4a1d9a1b979b8a0c2e8a9c194a284f42220f (patch) | |
tree | f27fbf52d5f146875d00f635f5f4f03db48816d0 /spec | |
parent | 6d88ca63050623db73e3cfe614e9a90657f5e875 (diff) | |
download | yuescript-f61a4a1d9a1b979b8a0c2e8a9c194a284f42220f.tar.gz yuescript-f61a4a1d9a1b979b8a0c2e8a9c194a284f42220f.tar.bz2 yuescript-f61a4a1d9a1b979b8a0c2e8a9c194a284f42220f.zip |
fixing issue #153.v0.19.6
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/import.yue | 36 | ||||
-rw-r--r-- | spec/outputs/import.lua | 16 |
2 files changed, 52 insertions, 0 deletions
diff --git a/spec/inputs/import.yue b/spec/inputs/import.yue index 7a21995..b8ffc24 100644 --- a/spec/inputs/import.yue +++ b/spec/inputs/import.yue | |||
@@ -76,6 +76,42 @@ do | |||
76 | c | 76 | c |
77 | 77 | ||
78 | do | 78 | do |
79 | from UnityEngine import Object | ||
80 | GameObject | ||
81 | Transform | ||
82 | MonoBehaviour | ||
83 | Vector3 | ||
84 | Quaternion | ||
85 | |||
86 | speed = 10 | ||
87 | |||
88 | do | ||
89 | from UnityEngine import Object, GameObject, | ||
90 | Transform | ||
91 | MonoBehaviour | ||
92 | Vector3 | ||
93 | Quaternion | ||
94 | |||
95 | speed = 10 | ||
96 | |||
97 | do | ||
98 | from UnityEngine import Object, GameObject, | ||
99 | Transform, | ||
100 | MonoBehaviour | ||
101 | Vector3, Quaternion | ||
102 | |||
103 | update speed | ||
104 | |||
105 | do | ||
106 | from UnityEngine import | ||
107 | Object, GameObject, | ||
108 | Transform, | ||
109 | MonoBehaviour | ||
110 | Vector3, Quaternion | ||
111 | |||
112 | update speed | ||
113 | |||
114 | do | ||
79 | import 'module' | 115 | import 'module' |
80 | import 'module_x' | 116 | import 'module_x' |
81 | import "d-a-s-h-e-s" | 117 | import "d-a-s-h-e-s" |
diff --git a/spec/outputs/import.lua b/spec/outputs/import.lua index ef83f2d..270c7b7 100644 --- a/spec/outputs/import.lua +++ b/spec/outputs/import.lua | |||
@@ -113,6 +113,22 @@ do | |||
113 | local a, b, c = z.a, z.b, z.c | 113 | local a, b, c = z.a, z.b, z.c |
114 | end | 114 | end |
115 | do | 115 | do |
116 | local Object, GameObject, Transform, MonoBehaviour, Vector3, Quaternion = UnityEngine.Object, UnityEngine.GameObject, UnityEngine.Transform, UnityEngine.MonoBehaviour, UnityEngine.Vector3, UnityEngine.Quaternion | ||
117 | local speed = 10 | ||
118 | end | ||
119 | do | ||
120 | local Object, GameObject, Transform, MonoBehaviour, Vector3, Quaternion = UnityEngine.Object, UnityEngine.GameObject, UnityEngine.Transform, UnityEngine.MonoBehaviour, UnityEngine.Vector3, UnityEngine.Quaternion | ||
121 | local speed = 10 | ||
122 | end | ||
123 | do | ||
124 | local Object, GameObject, Transform, MonoBehaviour, Vector3, Quaternion = UnityEngine.Object, UnityEngine.GameObject, UnityEngine.Transform, UnityEngine.MonoBehaviour, UnityEngine.Vector3, UnityEngine.Quaternion | ||
125 | update(speed) | ||
126 | end | ||
127 | do | ||
128 | local Object, GameObject, Transform, MonoBehaviour, Vector3, Quaternion = UnityEngine.Object, UnityEngine.GameObject, UnityEngine.Transform, UnityEngine.MonoBehaviour, UnityEngine.Vector3, UnityEngine.Quaternion | ||
129 | update(speed) | ||
130 | end | ||
131 | do | ||
116 | local module = require('module') | 132 | local module = require('module') |
117 | local module_x = require('module_x') | 133 | local module_x = require('module_x') |
118 | local d_a_s_h_e_s = require("d-a-s-h-e-s") | 134 | local d_a_s_h_e_s = require("d-a-s-h-e-s") |