Skip to content

Commit 9ab60a7

Browse files
committed
up
1 parent 5b5c75f commit 9ab60a7

13 files changed

+1064
-1014
lines changed

Assets/Plugins/kbengine_unity3d_plugins/AvatarBase.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,25 @@ public override List<EntityComponent> getComponents(string componentName, bool a
157157
public override void onGetBase()
158158
{
159159
baseEntityCall = new EntityBaseEntityCall_AvatarBase(id, className);
160+
component1.onGetBase();
161+
component2.onGetBase();
162+
component3.onGetBase();
160163
}
161164

162165
public override void onGetCell()
163166
{
164167
cellEntityCall = new EntityCellEntityCall_AvatarBase(id, className);
168+
component1.onGetCell();
169+
component2.onGetCell();
170+
component3.onGetCell();
165171
}
166172

167173
public override void onLoseCell()
168174
{
169175
cellEntityCall = null;
176+
component1.onLoseCell();
177+
component2.onLoseCell();
178+
component3.onLoseCell();
170179
}
171180

172181
public override EntityCall getBaseEntityCall()

Assets/Plugins/kbengine_unity3d_plugins/EntityComponent.cs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,26 @@ public virtual void onLeaveworld()
3535
{
3636
}
3737

38-
public virtual ScriptModule getScriptModule()
39-
{
38+
public virtual void onGetBase()
39+
{
40+
// 动态生成
41+
}
42+
43+
public virtual void onGetCell()
44+
{
45+
// 动态生成
46+
}
47+
48+
public virtual void onLoseCell()
49+
{
4050
// 动态生成
41-
return null;
42-
}
51+
}
52+
53+
public virtual ScriptModule getScriptModule()
54+
{
55+
// 动态生成
56+
return null;
57+
}
4358

4459
public virtual void onRemoteMethodCall(UInt16 methodUtype, MemoryStream stream)
4560
{

Assets/Plugins/kbengine_unity3d_plugins/KBEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public enum NETWORK_ENCRYPT_TYPE
8888

8989
// 服务端与客户端的版本号以及协议MD5
9090
public string serverVersion = "";
91-
public string clientVersion = "2.5.0";
91+
public string clientVersion = "2.5.1";
9292
public string serverScriptVersion = "";
9393
public string clientScriptVersion = "0.1.0";
9494
public string serverProtocolMD5 = "ACE55A2934030C0DA3446BA0E5FAB5DD";

0 commit comments

Comments
 (0)