@@ -54,11 +54,11 @@ protected override void OnExecute() {
54
54
data : bytes , token : this . GetModel < IGameControllerModel > ( ) . Token . Value ,
55
55
succData : ( data ) => {
56
56
this . GetModel < IUserModel > ( ) . Aid . Value = ( int ) data [ "aid" ] ;
57
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Successfully Set" ) ) ;
57
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Successfully Set" ) ) ;
58
58
} ,
59
59
code : ( code ) => {
60
60
if ( code == 423 ) {
61
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Did not have" ) ) ;
61
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Did not have" ) ) ;
62
62
}
63
63
} ) ) ;
64
64
}
@@ -81,7 +81,7 @@ protected override void OnExecute() {
81
81
Debug . Log ( "++++++ " + sb . ToString ( ) ) ;
82
82
byte [ ] bytes = Encoding . UTF8 . GetBytes ( sb . ToString ( ) ) ;
83
83
if ( this . GetModel < IUserModel > ( ) . Star . Value > mEquipInfo . star ) {
84
- this . GetModel < IGameControllerModel > ( ) . InfoConfirmAlert . ShowWithText ( content : string . Format ( I18N . manager . GetText ( "Whether to spend {0} star on this equip" ) ,
84
+ this . GetModel < IGameControllerModel > ( ) . InfoConfirmAlert . ShowWithText ( content : string . Format ( this . GetSystem < II18NSystem > ( ) . GetText ( "Whether to spend {0} star on this equip" ) ,
85
85
mEquipInfo . star ) ,
86
86
success : ( ) => {
87
87
CoroutineController . manager . StartCoroutine ( Util . POSTHTTP ( url : this . GetSystem < INetworkSystem > ( ) . HttpBaseUrl +
@@ -94,10 +94,10 @@ protected override void OnExecute() {
94
94
} ) ) ;
95
95
} ,
96
96
fail : ( ) => {
97
- Debug . Log ( I18N . manager . GetText ( "Give up to buy" ) ) ;
97
+ Debug . Log ( this . GetSystem < II18NSystem > ( ) . GetText ( "Give up to buy" ) ) ;
98
98
} ) ;
99
99
} else {
100
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( string . Format ( I18N . manager . GetText ( "This equip requires {0} star" ) ,
100
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( string . Format ( this . GetSystem < II18NSystem > ( ) . GetText ( "This equip requires {0} star" ) ,
101
101
mEquipInfo . star ) ) ;
102
102
}
103
103
}
@@ -124,12 +124,12 @@ protected override void OnExecute() {
124
124
data : bytes , token : this . GetModel < IGameControllerModel > ( ) . Token . Value ,
125
125
succData : ( data ) => {
126
126
this . GetModel < IUserModel > ( ) . EquipInfo . Value = this . GetModel < IEquipModel > ( ) . EquipDic [ ( int ) data [ "eid" ] ] ;
127
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Successfully Set" ) ) ;
127
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Successfully Set" ) ) ;
128
128
this . SendEvent < ApplyEquipEvent > ( ) ;
129
129
} ,
130
130
code : ( code ) => {
131
131
if ( code == 423 ) {
132
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Did not have" ) ) ;
132
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Did not have" ) ) ;
133
133
}
134
134
} ) ) ;
135
135
}
@@ -168,14 +168,14 @@ protected override void OnExecute() {
168
168
CoroutineController . manager . StartCoroutine ( Util . POSTHTTP ( url : this . GetSystem < INetworkSystem > ( ) . HttpBaseUrl + RequestUrl . modifyPersonalInfoUrl ,
169
169
data : bytes , token : this . GetModel < IGameControllerModel > ( ) . Token . Value ,
170
170
succData : ( data ) => {
171
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Modify Successfully" ) ) ;
171
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Modify Successfully" ) ) ;
172
172
this . GetModel < IUserModel > ( ) . Password . Value = mPassword ;
173
173
} ,
174
174
code : ( code ) => {
175
175
if ( code == 423 ) {
176
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Fail To Modify" ) ) ;
176
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Fail To Modify" ) ) ;
177
177
} else if ( code == 404 ) {
178
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Information Error" ) ) ;
178
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Information Error" ) ) ;
179
179
}
180
180
} ) ) ;
181
181
}
@@ -190,7 +190,7 @@ protected override void OnExecute() {
190
190
this . GetModel < IUserModel > ( ) . ParseUserInfo ( data ) ;
191
191
192
192
Util . DelayExecuteWithSecond ( Util . btnASTime , ( ) => {
193
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( text : I18N . manager . GetText ( "Login Success" ) ,
193
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( text : this . GetSystem < II18NSystem > ( ) . GetText ( "Login Success" ) ,
194
194
callback : ( ) => {
195
195
Util . LoadingScene ( SceneID . Index ) ;
196
196
} ) ;
@@ -231,19 +231,19 @@ protected override void OnExecute() {
231
231
if ( mUserName . ToLower ( ) == "tast" ) {
232
232
this . GetModel < IGameControllerModel > ( ) . GameHelper . gameObject . SetActiveFast ( true ) ;
233
233
}
234
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( text : I18N . manager . GetText ( "Login Success" ) ,
234
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( text : this . GetSystem < II18NSystem > ( ) . GetText ( "Login Success" ) ,
235
235
callback : ( ) => {
236
236
this . GetModel < IUserModel > ( ) . RememberPassword . Value = mIsRemember ? 1 : 0 ;
237
237
Util . LoadingScene ( SceneID . Index ) ;
238
238
} ) ;
239
239
} ) ;
240
240
241
241
} else if ( code == 423 ) {
242
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Password Error" ) ) ;
242
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Password Error" ) ) ;
243
243
} else if ( code == 404 ) {
244
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "User not registered" ) ) ;
244
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "User not registered" ) ) ;
245
245
} else {
246
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Unknown Error" ) ) ;
246
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Unknown Error" ) ) ;
247
247
}
248
248
} ) ) ;
249
249
}
@@ -278,15 +278,15 @@ protected override void OnExecute() {
278
278
this . GetModel < IUserModel > ( ) . Password . Value = mPassword ;
279
279
} , code : ( code ) => {
280
280
if ( code == 200 ) {
281
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( text : I18N . manager . GetText ( "Registration Successful" ) , callback : ( ) => {
281
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( text : this . GetSystem < II18NSystem > ( ) . GetText ( "Registration Successful" ) , callback : ( ) => {
282
282
Util . LoadingScene ( SceneID . Index ) ;
283
283
} ) ;
284
284
} else if ( code == 423 ) {
285
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "User registered" ) ) ;
285
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "User registered" ) ) ;
286
286
} else if ( code == 425 ) {
287
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Incorrect information format" ) ) ;
287
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Incorrect information format" ) ) ;
288
288
} else {
289
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "Unknown Error" ) ) ;
289
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "Unknown Error" ) ) ;
290
290
}
291
291
} ) ) ;
292
292
}
@@ -307,7 +307,7 @@ protected override void OnExecute() {
307
307
this . GetModel < IGameControllerModel > ( ) . CurGameType = GameType . Match ;
308
308
Util . LoadingScene ( SceneID . Game ) ;
309
309
} else {
310
- this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( I18N . manager . GetText ( "The game is over" ) ) ;
310
+ this . GetModel < IGameControllerModel > ( ) . WarningAlert . ShowWithText ( this . GetSystem < II18NSystem > ( ) . GetText ( "The game is over" ) ) ;
311
311
}
312
312
}
313
313
0 commit comments