Uses o obo ics o imp o e he ins umen al
skills o s uden s wi h Au ism Spec um
Diso de h ough he de elopmen o new
inclusi e con ex s (Di InTech)
Code o Teache Con ol App
1 Teache ’s in e ace
File 1: Con olPane.cs
1 u s i n g Sys em . C o l l e c i o n s ;
2 u s i n g Sys em . C o l l e c i o n s . Gene i c ;
3 u s i n g U ni yEng ine ;
4 u s i n g U ni yEng ine . UI ;
5 u s i n g Sys em ;
6 u s i n g TMP o ;
7 u s i n g U ni yEng ine . SceneManagemen ;
8 u s i n g Sys em . Ne ;
9 u s i n g Sys em . Ne . S o c k e s ;
10 u s i n g Sys em . Tex ;
11 u s i n g Sys em . IO ;
12 u s i n g Sys em . T h e ad in g ;
13 u s i n g Sys em . Linq ;
14
15
16 p u b l i c c l a s s Co n o lP an e : MonoBeha iou
17 {
18 p i a e s i n g GameIP = "GAMEIP" ;
19
20 p i a e s i n g ob o _m es sa ge ;
21
22 / / V a i a b l e s de l a i n e i c i e
23 p u b l i c TMP_Inpu Field I np u Fi eld _R ob o M es sa ge ;
24 p u b l i c Bu on B u o n _ P e s s e d B u o n ;
25 p u b l i c Bu on Bu on_LowVoice ;
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
26 p u b l i c Bu on Bu on_HighVoice ;
27 p u b l i c Bu on Bu on _Rep ea ;
28 p u b l i c Bu on Bu on_No Answe ;
29 p u b l i c Bu on Bu on_OKAnswe ;
30 p u b l i c Bu on Bu on_KO_Answe ;
31 p u b l i c Bu on Bu on_SendMessage ;
32 p u b l i c Bu on B u o n _ F i n i s h ;
33 p u b l i c Bu on Bu on_C lue ;
34
35 / / SOCKET
36 T c p C l i e n mySocke ;
37 p u b l i c Ne wo kS eam h eS e am ;
38 S e amW i e h e W i e ;
39 S eamReade h eR e a de ;
40
41 i n m e s s a g e _ e c i e e d _ a c i i y ;
42
43 / / Th ead
44 p i a e Th ead 1 ;
45
46 / / S a i s c a l l e d b e o e h e i s ame up d a e
47 o i d S a ( )
48 {
49
50 / / S o c k e
51 h i s . m e s s a g e _ e c i e e d _ a c i i y = −1;
52 S i n g ip = P l a y e P e s . G e S i n g ( GameIP ) ;
53 h i s . mySocke = new T c p C l i e n ( ip , 909 0) ;
54 h i s . h e S e am = mySocke . Ge S eam ( ) ;
55 h i s . h e W i e = new S e am W i e ( h eS e am ) ;
56 h i s . h e Re a d e = new S eamReade ( h e S e a m ) ;
57
58 / / C ea h e a d
59 h i s . 1 = new Th ead ( S o c k e L i s e n e ) {Name = " S ock e
L i s e n e " } ;
60 h i s . 1 . S a ( ) ;
61 / / I n i c i a l i z a a i a b l e s
62 h i s . o bo _ me ss ag e = " " ;
63
64 }
65
66 / / Th ead h a l i s e n s o s o c k e packages
67 p i a e o i d Socke Lis ene () {
68 s i n g a s c i i = " " ;
69 while ( a s c i i != " 0 0 " ) {
70 ascii = ecei e_message_ om_ac i i y () ;
71 h i s . m e s s a g e _ e c i e e d _ a c i i y = in . P a s e ( a s c i i ) ;
72 }
73 Debug . Log ( " Comunicaci ón con a c i i d a d e m i n a d a . " ) ;
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
74
75
76 }
77
78 p i a e s ing ecei e_message_ om_ac i i y () {
79 L i s < by e > b y e L i s = new L i s < by e > ( ) ;
80 b y e [ ] b u e = new b y e [ 2 ] ; / / Leemos de a un b y e
pa a e n c o n a e l i n d e l mensaje
81
82 while ( u e ) {
83 h i s . h eS e am . Read ( b u e , 0 , 2) ; / / Lee un b y e
a l a ez
84
85 s i n g hexhex = B i C o n e e . T oS i ng ( b u e ) .
Repla ce ( "−" , s i n g . Emp y ) . ToLowe ( ) ;
86
87 s i n g a s c i = c o n e _ h e x _ o _ a s c i i (
con e _hex_ o_ascii (hexhex));
88
89 i ( a s c i == " 0 " ) {
90 b y e L i s . Add ( b u e [ 0 ] ) ;
91 b y e L i s . Add ( b u e [ 1 ] ) ;
92 b eak ;/ / S i encon amos ’ 0 ’ , e m in am os l a
lec u a
93 }
94 b y e L i s . Add ( b u e [ 0 ] ) ;
95 b y e L i s . Add ( b u e [ 1 ] ) ;
96 }
97
98 by e [ ] myReadBu e = b y e L i s . ToA ay ( ) ;
99
100 s i n g hexhex_message = B i C o n e e . T oS in g (
myReadBu e ) . Repl ace ( "−" , s i n g . Emp y ) . ToLowe ( ) ;
101
102 s ing ascii = con e _hex_ o_ascii ( con e _hex_ o_ascii
(hexhex_message) ) ;
103
104 Debug . Log ( a s c i i ) ;
105
106 e u n a s c i i ;
107
108
109 }
110
111 p i a e s a ic b y e [ ] S i n g To B y e A ay ( s i n g hex ) {
112 e u n Enume able . Range ( 0 , hex . Leng h )
113 . Whe e ( x => x % 2 == 0)
114 . S e l e c ( x => Con e . ToBy e ( hex . S u b s i n g ( x
, 2 ) , 16) )
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
115 . ToA ay ( ) ;
116 }
117
118 p i a e s i n g c o n e _ h e x _ o _ a s c i i ( s i n g hex_message ) {
119
120 s i n g a s c i i = s i n g . Emp y ;
121
122 by e [ ] b y e s = S in gT oB y e A a y ( hex_message ) ;
123 a s c i i = Encoding . UTF8 . G e S i n g ( b y e s ) ;
124 e u n a s c i i ;
125
126 }
127
128
129 / / Upda e i s c a l l e d once pe ame
130 o i d Upda e ( )
131 {
132 i ( h i s . m e s s a g e _ e c i e e d _ a c i i y != 0) {
133 E n ab l e Di s a bl e Bu on s ( h i s . m e s s a g e _ e c i e e d _ a c i i y )
;
134 h i s . m e s s a g e _ e c i e e d _ a c i i y = −1;
135 }
136 else {
137 SceneManage . LoadScene ( " IP _Con ig " ) ;
138 }
139 }
140
141 p i a e o i d s e n d _ e x _ 2 _ s o c k e ( s i n g message ) {
142 by e [ ] b y e s = Encoding . UTF8 . Ge By es ( message ) ;
143 s i n g hex_message = B i C o n e e . T oS in g ( b y e s ) .
Repla ce ( "−" , s i n g . Emp y ) . ToLowe ( ) ;
144 h i s . h e W i e . W i e ( hex_message ) ;
145 h i s . h e W i e . F lus h ( ) ;
146 }
147
148 p i a e o i d E n a b l e D i s a b l e B u o n s ( i n b u o n s _ c a s e ) {
149 s w i c h ( b u o n s _ c a s e ) {
150 c a s e 1 :
151 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = u e ;
152 h i s . Bu on_LowVoice . i n e a c a b l e = a l s e ;
153 h i s . Bu on_HighVoice . i n e a c a b l e = a l s e ;
154 h i s . Bu on _R ep ea . i n e a c a b l e = a l s e ;
155 h i s . Bu on_No Answe . i n e a c a b l e = a l s e ;
156 h i s . Bu on_OKAnswe . i n e a c a b l e = a l s e ;
157 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
158 h i s . Bu on_SendMessage . i n e a c a b l e = a l s e ;
159 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
160 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
161 b eak ;
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
162 c a s e 2 :
163 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = u e ;
164 h i s . Bu on_LowVoice . i n e a c a b l e = a l s e ;
165 h i s . Bu on_HighVoice . i n e a c a b l e = a l s e ;
166 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
167 h i s . Bu on_No Answe . i n e a c a b l e = a l s e ;
168 h i s . Bu on_OKAnswe . i n e a c a b l e = a l s e ;
169 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
170 h i s . Bu on_SendMessage . i n e a c a b l e = u e ;
171 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
172 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
173 b eak ;
174 c a s e 3 :
175 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
176 h i s . Bu on_LowVoice . i n e a c a b l e = u e ;
177 h i s . Bu on_HighVoice . i n e a c a b l e = u e ;
178 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
179 h i s . Bu on_No Answe . i n e a c a b l e = u e ;
180 h i s . Bu on_OKAnswe . i n e a c a b l e = u e ;
181 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
182 h i s . Bu on_SendMessage . i n e a c a b l e = u e ;
183 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
184 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
185 b eak ;
186
187 c a s e 4 :
188 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
189 h i s . Bu on_LowVoice . i n e a c a b l e = u e ;
190 h i s . Bu on_HighVoice . i n e a c a b l e = u e ;
191 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
192 h i s . Bu on_No Answe . i n e a c a b l e = u e ;
193 h i s . Bu on_OKAnswe . i n e a c a b l e = u e ;
194 h i s . Bu on_KO_Answe . i n e a c a b l e = u e ;
195 h i s . Bu on_SendMessage . i n e a c a b l e = u e ;
196 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
197 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
198 b eak ;
199
200 c a s e 5 :
201 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
202 h i s . Bu on_LowVoice . i n e a c a b l e = u e ;
203 h i s . Bu on_HighVoice . i n e a c a b l e = u e ;
204 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
205 h i s . Bu on_No Answe . i n e a c a b l e = u e ;
206 h i s . Bu on_OKAnswe . i n e a c a b l e = u e ;
207 h i s . Bu on_KO_Answe . i n e a c a b l e = u e ;
208 h i s . Bu on_SendMessage . i n e a c a b l e = u e ;
209 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
210 h i s . B u o n_Cl ue . i n e a c a b l e = u e ;
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
211 b eak ;
212
213 c a s e 6 :
214 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
215 h i s . Bu on_LowVoice . i n e a c a b l e = u e ;
216 h i s . Bu on_HighVoice . i n e a c a b l e = u e ;
217 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
218 h i s . Bu on_No Answe . i n e a c a b l e = u e ;
219 h i s . Bu on_OKAnswe . i n e a c a b l e = u e ;
220 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
221 h i s . Bu on_SendMessage . i n e a c a b l e = u e ;
222 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
223 h i s . B u o n_Cl ue . i n e a c a b l e = u e ;
224 b eak ;
225
226 c a s e 7 :
227 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
228 h i s . Bu on_LowVoice . i n e a c a b l e = a l s e ;
229 h i s . Bu on_HighVoice . i n e a c a b l e = a l s e ;
230 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
231 h i s . Bu on_No Answe . i n e a c a b l e = u e ;
232 h i s . Bu on_OKAnswe . i n e a c a b l e = a l s e ;
233 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
234 h i s . Bu on_SendMessage . i n e a c a b l e = a l s e ;
235 h i s . B u o n _ F i n i s h . i n e a c a b l e = a l s e ;
236 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
237 b eak ;
238
239 c a s e 8 :
240 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
241 h i s . Bu on_LowVoice . i n e a c a b l e = a l s e ;
242 h i s . Bu on_HighVoice . i n e a c a b l e = a l s e ;
243 h i s . Bu on _R ep ea . i n e a c a b l e = a l s e ;
244 h i s . Bu on_No Answe . i n e a c a b l e = a l s e ;
245 h i s . Bu on_OKAnswe . i n e a c a b l e = a l s e ;
246 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
247 h i s . Bu on_SendMessage . i n e a c a b l e = a l s e ;
248 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
249 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
250 b eak ;
251
252 c a s e 9 :
253 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
254 h i s . Bu on_LowVoice . i n e a c a b l e = a l s e ;
255 h i s . Bu on_HighVoice . i n e a c a b l e = a l s e ;
256 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
257 h i s . Bu on_No Answe . i n e a c a b l e = a l s e ;
258 h i s . Bu on_OKAnswe . i n e a c a b l e = a l s e ;
259 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
260 h i s . Bu on_SendMessage . i n e a c a b l e = u e ;
261 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
262 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
263 b eak ;
264
265 c a s e 10:
266 h i s . B u o n _ P e s s e d B u o n . i n e a c a b l e = a l s e ;
267 h i s . Bu on_LowVoice . i n e a c a b l e = a l s e ;
268 h i s . Bu on_HighVoice . i n e a c a b l e = a l s e ;
269 h i s . Bu on _R ep ea . i n e a c a b l e = u e ;
270 h i s . Bu on_No Answe . i n e a c a b l e = u e ;
271 h i s . Bu on_OKAnswe . i n e a c a b l e = a l s e ;
272 h i s . Bu on_KO_Answe . i n e a c a b l e = a l s e ;
273 h i s . Bu on_SendMessage . i n e a c a b l e = u e ;
274 h i s . B u o n _ F i n i s h . i n e a c a b l e = u e ;
275 h i s . B u o n_Cl ue . i n e a c a b l e = a l s e ;
276 b eak ;
277
278 }
279 }
280
281 / / −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
282 / / CALLBACK FUNCTIONS
283 / / −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
284 p u b l i c o i d C a l l b a c k F a s e ( s i n g s ) {
285 Debug . Log ( " E s c i : " + s ) ;
286 h i s . o bo _ me ss ag e = s ;
287 }
288 / / −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
289 / / BUTTONS FUNCTIONS
290 / / −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
291 p u b l i c o i d Te mina () {
292 Debug . Log ( " e m i n a " ) ;
293 h i s . s e n d _ e x _ 2 _ s o c k e ( "F" ) ;
294 }
295
296 p u b l i c o i d Pulsado Pulsado () {
297 Debug . Log ( " P u l s a d o p u l s a d o " ) ;
298 h i s . s e n d _ e x _ 2 _ s o c k e ( "B" ) ;
299 }
300
301 p u b l i c o i d Repe i F ase () {
302 Debug . Log ( " e p e i " ) ;
303 h i s . s e n d _ e x _ 2 _ s o c k e ( "R" ) ;
304 }
305
306 p u b l i c o i d Respues aCo ec a () {
307 Debug . Log ( " c o e c a " ) ;
308 h i s . s e n d _ e x _ 2 _ s o c k e ( "C" ) ;
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
309 }
310
311 p u b l i c o i d R e s p u e s a I n c o e c a ( ) {
312 Debug . Log ( " i n c o e c a " ) ;
313 h i s . s e n d _ e x _ 2 _ s o c k e ( " I " ) ;
314 }
315
316 p u b l i c o i d NoResponde () {
317 Debug . Log ( " no e s po n de " ) ;
318 h i s . s e n d _ e x _ 2 _ s o c k e ( "M" ) ;
319 }
320
321 p u b l i c o i d VozBaja ( ) {
322 Debug . Log ( " oz b a j a " ) ;
323 h i s . s e n d _ e x _ 2 _ s o c k e ( "L" ) ;
324 }
325
326 p u b l i c o i d VozAl a ( ) {
327 Debug . Log ( " oz a l a " ) ;
328 h i s . s e n d _ e x _ 2 _ s o c k e ( "H" ) ;
329 }
330
331 p u b l i c o i d E n i a F a s e ( ) {
332 i ( h i s . o bo _ me ss age == " " ) {
333 h i s . I n pu Fi e ld _ R ob o M e ss a ge . image . c o l o = C olo . e d
;
334 }
335 else {
336 h i s . I n pu Fi e ld _ R ob o M e ss a ge . image . c o l o = C olo .
wh i e ;
337 Debug . Log ( " e n i a " ) ;
338 h i s . s e n d _ e x _ 2 _ s o c k e ( "S"+ h i s . obo _me ssag e ) ;
339 }
340 }
341
342 p u b l i c o i d D a P i s a ( ) {
343 Debug . Log ( " d a P i s a " ) ;
344 h i s . s e n d _ e x _ 2 _ s o c k e ( "P" ) ;
345 }
346
347
348 }
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).
File 2: IP_Con ig.cs
1 u s i n g Sys em . C o l l e c i o n s ;
2 u s i n g Sys em . C o l l e c i o n s . Ge ne i c ;
3 u s i n g U ni yEng ine ;
4 u s i n g U ni yEng ine . UI ;
5 u s i n g Sys em ;
6 u s i n g TMP o ;
7 u s i n g U ni yEng ine . SceneManagemen ;
8 u s i n g Sys em . Ne ;
9 u s i n g Sys em . Ne . S o c k e s ;
10 u s i n g Sys em . Tex ;
11 u s i n g Sys em . IO ;
12
13 p u b l i c c l a s s I P_Co n ig : MonoBeha iou
14 {
15 p i a e s i n g GameIP = "GAMEIP" ;
16
17 p u b l i c TMP_Inpu Field In pu F iel d_Ga meIp ;
18
19 p i a e s i n g game_ip ;
20
21
22
23 / / S a i s c a l l e d b e o e h e i s ame up d a e
24 o i d S a ( )
25 {
26 h i s . game_ip = " 1 9 2 . 1 6 8 . 3 1 . 1 1 9 " ;
27 }
28
29 / / Upda e i s c a l l e d once pe ame
30 o i d Upda e ( )
31 {
32
33 }
34
35 p u b l i c o i d CallbackGameIP ( s i n g s ) {
36 h i s . game_ip = s ;
37 }
38
39 / / −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
40 / / BUTTONS FUNCTIONS
41 / / −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
42 p u b l i c o i d Con inua () {
43 i ( h i s . game_ip == " " ) {
44 h i s . In pu F ie ld _G am eI p . image . c o l o = Colo . e d ;
45 }
46 else {
47 P l a y e P e s . S e S i n g ( GameIP , h i s . game_ip ) ;
This esea ch was suppo ed by he Spanish Na ional P og am o P ojec s o
Knowledge Gene a ion 2022 wi h he e e ence PID2022-140284OB-I00, o he
P og am o Boos Scien i ic and Technical Resea ch and i s T ans e , om he
Spanish Na ional Plan o Scien i ic, Technical, and Inno a ion Resea ch
2021-2023, i led “Uses o obo ics o imp o e he ins umen al skills o s uden s
wi h au ism spec um diso de h ough he de elopmen o new inclusi e
con ex s. (Di InTech)”. (AEI/FEDER, UE).