@@ -135,7 +135,7 @@ module API = {
135
135
let unsafeGetScriptAttributeFieldValue =
136
136
api## unsafeGetScriptAttributeFieldValue;
137
137
138
- unsafeGetScriptAttributeFieldValue(fieldName, scriptAttribute)
138
+ unsafeGetScriptAttributeFieldValue(. fieldName, scriptAttribute)
139
139
|> ScriptAttributeType . scriptAttributeValueToInt;
140
140
};
141
141
@@ -144,6 +144,7 @@ module API = {
144
144
let setScriptAttributeFieldValue = api## setScriptAttributeFieldValue;
145
145
146
146
setScriptAttributeFieldValue(
147
+ .
147
148
script,
148
149
(
149
150
scriptAttributeName,
@@ -159,7 +160,7 @@ module API = {
159
160
let unsafeGetScriptAttributeFieldValue =
160
161
api## unsafeGetScriptAttributeFieldValue;
161
162
162
- unsafeGetScriptAttributeFieldValue(fieldName, scriptAttribute)
163
+ unsafeGetScriptAttributeFieldValue(. fieldName, scriptAttribute)
163
164
|> ScriptAttributeType . scriptAttributeValueToFloat;
164
165
};
165
166
@@ -168,6 +169,7 @@ module API = {
168
169
let setScriptAttributeFieldValue = api## setScriptAttributeFieldValue;
169
170
170
171
setScriptAttributeFieldValue(
172
+ .
171
173
script,
172
174
(
173
175
scriptAttributeName,
@@ -249,14 +251,15 @@ module TestCaseWithOneEventFuncAndOneAttribute = {
249
251
250
252
let transform =
251
253
unsafeGetGameObjectTransformComponent(
252
- unsafeGetScriptGameObject(script, state),
254
+ .
255
+ unsafeGetScriptGameObject(. script, state),
253
256
state,
254
257
);
255
258
256
- let (x , y , z ) = getTransformLocalPosition(transform, state);
259
+ let (x , y , z ) = getTransformLocalPosition(. transform, state);
257
260
258
261
let state =
259
- setTransformLocalPosition(transform, (x +. 10 ., y, z), state);
262
+ setTransformLocalPosition(. transform, (x +. 10 ., y, z), state);
260
263
261
264
state;
262
265
};
@@ -268,7 +271,7 @@ module TestCaseWithOneEventFuncAndOneAttribute = {
268
271
let unsafeGetScriptAttribute = api## unsafeGetScriptAttribute;
269
272
270
273
let scriptAttribute =
271
- unsafeGetScriptAttribute(script, scriptAttributeName, state);
274
+ unsafeGetScriptAttribute(. script, scriptAttributeName, state);
272
275
273
276
let state =
274
277
API . setScriptAttributeIntFieldValue(
@@ -291,7 +294,7 @@ module TestCaseWithOneEventFuncAndOneAttribute = {
291
294
let unsafeGetScriptAttribute = api## unsafeGetScriptAttribute;
292
295
293
296
let scriptAttribute =
294
- unsafeGetScriptAttribute(script, scriptAttributeName, state);
297
+ unsafeGetScriptAttribute(. script, scriptAttributeName, state);
295
298
296
299
let state =
297
300
API . setScriptAttributeFloatFieldValue(
@@ -427,9 +430,9 @@ module TestCaseWithOneEventFuncAndTwoAttributes = {
427
430
let unsafeGetScriptAttribute = api## unsafeGetScriptAttribute;
428
431
429
432
let scriptAttribute1 =
430
- unsafeGetScriptAttribute(script, scriptAttribute1Name, state);
433
+ unsafeGetScriptAttribute(. script, scriptAttribute1Name, state);
431
434
let scriptAttribute2 =
432
- unsafeGetScriptAttribute(script, scriptAttribute2Name, state);
435
+ unsafeGetScriptAttribute(. script, scriptAttribute2Name, state);
433
436
434
437
let state =
435
438
API . setScriptAttributeFloatFieldValue(
@@ -581,9 +584,9 @@ module TestCaseWithTwoEventFuncsAndTwoAttributes = {
581
584
let unsafeGetScriptAttribute = api## unsafeGetScriptAttribute;
582
585
583
586
let scriptAttribute1 =
584
- unsafeGetScriptAttribute(script, scriptAttribute1Name, state);
587
+ unsafeGetScriptAttribute(. script, scriptAttribute1Name, state);
585
588
let scriptAttribute2 =
586
- unsafeGetScriptAttribute(script, scriptAttribute2Name, state);
589
+ unsafeGetScriptAttribute(. script, scriptAttribute2Name, state);
587
590
588
591
let state =
589
592
API . setScriptAttributeIntFieldValue(
@@ -614,9 +617,9 @@ module TestCaseWithTwoEventFuncsAndTwoAttributes = {
614
617
let unsafeGetScriptAttribute = api## unsafeGetScriptAttribute;
615
618
616
619
let scriptAttribute1 =
617
- unsafeGetScriptAttribute(script, scriptAttribute1Name, state);
620
+ unsafeGetScriptAttribute(. script, scriptAttribute1Name, state);
618
621
let scriptAttribute2 =
619
- unsafeGetScriptAttribute(script, scriptAttribute2Name, state);
622
+ unsafeGetScriptAttribute(. script, scriptAttribute2Name, state);
620
623
621
624
let state =
622
625
API . setScriptAttributeFloatFieldValue(
0 commit comments