We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a58603 commit e02023bCopy full SHA for e02023b
GameFrameX.Core/Actors/Actor.cs
@@ -13,14 +13,6 @@ namespace GameFrameX.Core.Actors
13
/// </summary>
14
public sealed class Actor : IActor
15
{
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- public Actor()
20
- {
21
- ScheduleIdSet = new HashSet<long>();
22
- }
23
-
24
private readonly ConcurrentDictionary<Type, BaseComponent> _componentsMap = new ConcurrentDictionary<Type, BaseComponent>();
25
26
/// <summary>
@@ -31,7 +23,7 @@ public Actor()
31
32
/// 订阅哈希列表
33
34
- public HashSet<long> ScheduleIdSet { get; }
+ public HashSet<long> ScheduleIdSet { get; } = new HashSet<long>();
35
27
36
28
37
29
/// Actor类型
0 commit comments