Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromegametang/ET

Commit613f2d9

Browse files
committed
组件的Parent应该是Component,这里漏改了
1 parente13b22f commit613f2d9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

‎Server/App/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ private static void Main(string[] args)
9191
Game.Scene.AddComponent<UnitComponent>();
9292
Game.Scene.AddComponent<DBComponent>();
9393
Game.Scene.AddComponent<DBProxyComponent>();
94+
Game.Scene.AddComponent<DBCacheComponent>();
9495
Game.Scene.AddComponent<LocationComponent>();
9596
Game.Scene.AddComponent<ActorMessageDispatherComponent>();
9697
Game.Scene.AddComponent<ActorManagerComponent>();

‎Unity/Assets/Scripts/Base/Object/Component.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ public abstract partial class Component: Disposer
1212
publiclongId{get;set;}
1313

1414
[BsonIgnore]
15-
publicDisposerParent{get;set;}
15+
publicComponentParent{get;set;}
1616

17-
publicTGetParent<T>()whereT:Disposer
17+
publicTGetParent<T>()whereT:Component
1818
{
1919
returnthis.ParentasT;
2020
}
2121

22+
[BsonIgnore]
2223
publicEntityEntity
2324
{
2425
get

‎Unity/Hotfix/Base/Object/Component.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public abstract class Component : Disposer
99
[BsonIgnore]
1010
publicComponentParent{get;set;}
1111

12-
publicTGetParent<T>()whereT:Entity
12+
publicTGetParent<T>()whereT:Component
1313
{
1414
returnthis.ParentasT;
1515
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp