Skip to content

Commit 8b248ed

Browse files
committed
up
1 parent 7e73028 commit 8b248ed

File tree

1 file changed

+11
-7
lines changed
  • Assets/Plugins/kbengine_unity3d_plugins

1 file changed

+11
-7
lines changed

Assets/Plugins/kbengine_unity3d_plugins/README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ kbengine_unity3d_plugins
44
Usage
55
---------------------
66

7-
1: Create clientapp.cs
7+
1: Generate client plugins through projects
8+
1: Double click to run kbengine\*assets\gensdk.bat
9+
2: Copy kbengine_unity3d_plugins to {ProjectName}\Assets\Plugins
10+
11+
2: Create clientapp.cs
812
using KBEngine;
913
public class clientapp : KBEMain
1014
{
1115
}
1216

13-
2: Implment the KBE defined entity (including the client part)
14-
See: kbengine\kbengine_demos_assets\scripts\entities.xml��hasClient="true" need to implment
17+
3: Implment the KBE defined entity (including the client part)
18+
See: kbengine\kbengine_demos_assets\scripts\entities.xml->hasClient="true" need to implment
1519
<Account hasClient="true"></Account>
1620
<Monster hasClient="true"></Monster>
1721
<Gate hasClient="true"></Gate>
@@ -26,10 +30,10 @@ Usage
2630
}
2731

2832
Call entity server method
29-
entity.baseCall("base_func", 1, "arg2", "argN")
30-
entity.cellCall("cell_func", 1, "arg2", "argN")
33+
Account.cs: baseEntityCall.reqAvatarList();
34+
Avatar.cs: cellEntityCall.relive(reliveType);
3135

32-
3: Monitor KBE-plugins event
36+
4: Monitor KBE-plugins event
3337
For example:
3438
public class UI : MonoBehaviour
3539
{
@@ -44,7 +48,7 @@ Usage
4448
}
4549
}
4650

47-
4: Fire events to the KBE-plugins
51+
5: Fire events to the KBE-plugins
4852
For example:
4953
KBEngine.Event.fireIn("login", "stringAccount", "stringPasswd", System.Text.Encoding.UTF8.GetBytes("kbengine_unity3d_demo"));
5054

0 commit comments

Comments
 (0)