Skip to content

Commit e02023b

Browse files
committed
[修复]1. 修复对象初始化异常的问题
1 parent 4a58603 commit e02023b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

GameFrameX.Core/Actors/Actor.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ namespace GameFrameX.Core.Actors
1313
/// </summary>
1414
public sealed class Actor : IActor
1515
{
16-
/// <summary>
17-
///
18-
/// </summary>
19-
public Actor()
20-
{
21-
ScheduleIdSet = new HashSet<long>();
22-
}
23-
2416
private readonly ConcurrentDictionary<Type, BaseComponent> _componentsMap = new ConcurrentDictionary<Type, BaseComponent>();
2517

2618
/// <summary>
@@ -31,7 +23,7 @@ public Actor()
3123
/// <summary>
3224
/// 订阅哈希列表
3325
/// </summary>
34-
public HashSet<long> ScheduleIdSet { get; }
26+
public HashSet<long> ScheduleIdSet { get; } = new HashSet<long>();
3527

3628
/// <summary>
3729
/// Actor类型

0 commit comments

Comments
 (0)