Skip to content

Commit edd1ec0

Browse files
committed
纠正错别字(ReLogin, DisableConnect, ConnectStatus )=> (relogin, disconnected, connectionState)
1 parent 89ff4d5 commit edd1ec0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Assets/Scripts/u3d_scripts/UI.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ void installEvents()
4141
{
4242
// common
4343
KBEngine.Event.registerOut("onKicked", this, "onKicked");
44-
KBEngine.Event.registerOut("onDisableConnect", this, "onDisableConnect");
45-
KBEngine.Event.registerOut("onConnectStatus", this, "onConnectStatus");
44+
KBEngine.Event.registerOut("onDisconnected", this, "onDisconnected");
45+
KBEngine.Event.registerOut("onConnectionState", this, "onConnectionState");
4646

4747
// login
4848
KBEngine.Event.registerOut("onCreateAccountResult", this, "onCreateAccountResult");
@@ -308,7 +308,7 @@ public void onCreateAccountResult(UInt16 retcode, byte[] datas)
308308
}
309309
}
310310

311-
public void onConnectStatus(bool success)
311+
public void onConnectionState(bool success)
312312
{
313313
if(!success)
314314
err("connect(" + KBEngineApp.app.getInitArgs().ip + ":" + KBEngineApp.app.getInitArgs().port + ") is error! (连接错误)");
@@ -405,7 +405,7 @@ public void onRemoveAvatar(UInt64 dbid, Dictionary<UInt64, Dictionary<string, ob
405405
onReqAvatarList(avatarList);
406406
}
407407

408-
public void onDisableConnect()
408+
public void onDisconnected()
409409
{
410410
}
411411
}

0 commit comments

Comments
 (0)