Skip to content

Commit 432ee0b

Browse files
committed
up
1 parent 992495f commit 432ee0b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,23 @@ Usage
3030
entity.cellCall("cell_func", 1, "arg2", "argN")
3131

3232
3: Monitor KBE-plugins event
33-
public class UI : MonoBehaviour
34-
{
35-
void Start ()
33+
For example:
34+
public class UI : MonoBehaviour
3635
{
37-
KBEngine.Event.registerOut("onConnectStatus", this, "onConnectStatus");
38-
}
36+
void Start ()
37+
{
38+
KBEngine.Event.registerOut("onConnectStatus", this, "onConnectStatus");
39+
}
3940

40-
public void onConnectStatus(bool success)
41-
{
42-
// KBE-plugins event fired
41+
public void onConnectStatus(bool success)
42+
{
43+
// KBE-plugins event fired
44+
}
4345
}
44-
}
4546

4647
4: Fire events to the KBE-plugins
47-
KBEngine.Event.fireIn("login", "stringAccount", "stringPasswd", System.Text.Encoding.UTF8.GetBytes("kbengine_unity3d_demo"));
48+
For example:
49+
KBEngine.Event.fireIn("login", "stringAccount", "stringPasswd", System.Text.Encoding.UTF8.GetBytes("kbengine_unity3d_demo"));
4850

4951

5052

0 commit comments

Comments
 (0)