tanghai 3 лет назад
Родитель
Сommit
3374df1970
71 измененных файлов с 138 добавлено и 141 удалено
  1. 0 3
      Codes/Analyzer/Analyzer/StaticClassCircularDependencyAnalyzer.cs
  2. 2 2
      Codes/Hotfix/Client/Demo/Ping/PingComponentSystem.cs
  3. 2 2
      Codes/Hotfix/Client/Demo/Router/RouterAddressComponentSystem.cs
  4. 1 1
      Codes/Hotfix/Client/Demo/Router/RouterCheckComponentSystem.cs
  5. 2 2
      Codes/Hotfix/Client/Demo/Scene/ClientSceneFlagComponentSystem.cs
  6. 2 2
      Codes/Hotfix/Client/Demo/Scene/ClientSceneManagerComponentSystem.cs
  7. 1 1
      Codes/Hotfix/Client/Demo/Session/SessionComponentSystem.cs
  8. 1 1
      Codes/Hotfix/Server/Demo/Gate/PlayerSystem.cs
  9. 1 1
      Codes/Hotfix/Server/Demo/Gate/SessionPlayerComponentSystem.cs
  10. 1 1
      Codes/Hotfix/Server/Demo/Map/Unit/UnitGateComponentSystem.cs
  11. 2 2
      Codes/Hotfix/Server/Demo/Watcher/WatcherComponentSystem.cs
  12. 2 2
      Codes/Hotfix/Server/Module/AOI/AOIEntitySystem.cs
  13. 1 1
      Codes/Hotfix/Server/Module/AOI/CellSystem.cs
  14. 3 3
      Codes/Hotfix/Server/Module/Actor/ActorMessageDispatcherComponentSystem.cs
  15. 2 2
      Codes/Hotfix/Server/Module/Actor/ActorMessageSenderComponentSystem.cs
  16. 2 2
      Codes/Hotfix/Server/Module/Actor/MailBoxComponentSystem.cs
  17. 2 2
      Codes/Hotfix/Server/Module/ActorLocation/ActorLocationSenderComponentSystem.cs
  18. 2 2
      Codes/Hotfix/Server/Module/ActorLocation/ActorLocationSenderSystem.cs
  19. 2 2
      Codes/Hotfix/Server/Module/ActorLocation/LocationComponentSystem.cs
  20. 2 2
      Codes/Hotfix/Server/Module/ActorLocation/LocationProxyComponentSystem.cs
  21. 2 2
      Codes/Hotfix/Server/Module/Console/ConsoleComponentSystem.cs
  22. 1 1
      Codes/Hotfix/Server/Module/DB/DBComponentSystem.cs
  23. 2 2
      Codes/Hotfix/Server/Module/DB/DBManagerComponentSystem.cs
  24. 3 3
      Codes/Hotfix/Server/Module/Http/HttpComponentSystem.cs
  25. 3 3
      Codes/Hotfix/Server/Module/MessageInner/NetInnerComponentSystem.cs
  26. 2 2
      Codes/Hotfix/Server/Module/RobotCase/RobotCaseComponentSystem.cs
  27. 2 2
      Codes/Hotfix/Server/Module/RobotCase/RobotCaseDispatcherComponentSystem.cs
  28. 3 3
      Codes/Hotfix/Server/Module/Router/RouterComponentSystem.cs
  29. 2 2
      Codes/Hotfix/Server/Module/Router/RouterNodeSystem.cs
  30. 2 2
      Codes/Hotfix/Share/Module/AI/AIComponentSystem.cs
  31. 3 3
      Codes/Hotfix/Share/Module/AI/AIDispatcherComponentSystem.cs
  32. 2 2
      Codes/Hotfix/Share/Module/Config/ConfigComponentSystem.cs
  33. 3 3
      Codes/Hotfix/Share/Module/Message/MessageDispatcherComponentSystem.cs
  34. 3 3
      Codes/Hotfix/Share/Module/Message/NetKcpComponentSystem.cs
  35. 3 3
      Codes/Hotfix/Share/Module/Message/NetThreadComponentSystem.cs
  36. 2 2
      Codes/Hotfix/Share/Module/Message/SessionAcceptTimeoutComponentSystem.cs
  37. 2 2
      Codes/Hotfix/Share/Module/Message/SessionIdleCheckerComponentSystem.cs
  38. 2 2
      Codes/Hotfix/Share/Module/Move/MoveComponentSystem.cs
  39. 1 1
      Codes/Hotfix/Share/Module/Recast/NavmeshComponentSystem.cs
  40. 2 2
      Codes/Hotfix/Share/Module/Recast/PathfindingComponentSystem.cs
  41. 2 2
      Codes/Hotfix/Share/Module/Unit/UnitComponentSystem.cs
  42. 1 1
      Codes/Hotfix/Share/Module/Unit/UnitSystem.cs
  43. 5 5
      Codes/HotfixView/Client/Demo/Camera/CameraComponentSystem.cs
  44. 1 1
      Codes/HotfixView/Client/Demo/Global/GlobalComponentSystem.cs
  45. 2 2
      Codes/HotfixView/Client/Demo/Opera/OperaComponentSystem.cs
  46. 1 1
      Codes/HotfixView/Client/Demo/UI/UILoading/UILoadingComponentSystem.cs
  47. 1 1
      Codes/HotfixView/Client/Demo/UI/UILobby/UILobbyComponentSystem.cs
  48. 1 1
      Codes/HotfixView/Client/Demo/UI/UILogin/UILoginComponentSystem.cs
  49. 3 3
      Codes/HotfixView/Client/Demo/Unit/AnimatorComponentSystem.cs
  50. 1 1
      Codes/HotfixView/Client/Demo/Unit/GameObjectComponentSystem.cs
  51. 1 1
      Codes/HotfixView/Client/Module/UI/UIEventComponentSystem.cs
  52. 2 2
      Codes/Model/Server/Module/Console/ModeContex.cs
  53. 2 2
      Codes/Model/Share/Module/CoroutineLock/CoroutineLock.cs
  54. 3 3
      Codes/Model/Share/Module/CoroutineLock/CoroutineLockComponent.cs
  55. 2 2
      Codes/Model/Share/Module/CoroutineLock/CoroutineLockQueue.cs
  56. 2 2
      Codes/Model/Share/Module/Message/OpcodeTypeComponent.cs
  57. 2 2
      Codes/Model/Share/Module/Message/Session.cs
  58. 2 2
      Codes/Model/Share/Module/Numeric/NumericWatcherComponent.cs
  59. 2 2
      Codes/Model/Share/Module/ObjectWait/ObjectWait.cs
  60. 5 5
      Codes/Model/Share/Module/Timer/TimerComponent.cs
  61. 4 4
      Codes/ModelView/Client/Module/Resource/ResourcesComponent.cs
  62. 1 1
      Codes/ModelView/Client/Module/Resource/ResourcesLoaderComponent.cs
  63. 2 2
      Codes/ModelView/Client/Module/UI/UI.cs
  64. 1 1
      Unity/Assets/Scripts/Core/Object/IAddComponentSystem.cs
  65. 5 5
      Unity/Assets/Scripts/Core/Object/IAwakeSystem.cs
  66. 1 1
      Unity/Assets/Scripts/Core/Object/IDeserializeSystem.cs
  67. 1 1
      Unity/Assets/Scripts/Core/Object/IDestroySystem.cs
  68. 1 1
      Unity/Assets/Scripts/Core/Object/IGetComponentSystem.cs
  69. 1 1
      Unity/Assets/Scripts/Core/Object/ILateUpdateSystem.cs
  70. 1 1
      Unity/Assets/Scripts/Core/Object/ILoadSystem.cs
  71. 1 1
      Unity/Assets/Scripts/Core/Object/IUpdateSystem.cs

+ 0 - 3
Codes/Analyzer/Analyzer/StaticClassCircularDependencyAnalyzer.cs

@@ -27,9 +27,6 @@ namespace ET.Analyzer
 
         public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
 
-        public static readonly ConcurrentDictionary<string, ConcurrentBag<string>> DependencyMap =
-                new ConcurrentDictionary<string, ConcurrentBag<string>>();
-
         public override void Initialize(AnalysisContext context)
         {
             if (!AnalyzerGlobalSetting.EnableAnalyzer)

+ 2 - 2
Codes/Hotfix/Client/Demo/Ping/PingComponentSystem.cs

@@ -5,7 +5,7 @@ namespace ET.Client
     [ObjectSystem]
     public class PingComponentAwakeSystem: AwakeSystem<PingComponent>
     {
-        public override void Awake(PingComponent self)
+        protected override void Awake(PingComponent self)
         {
             PingAsync(self).Coroutine();
         }
@@ -56,7 +56,7 @@ namespace ET.Client
     [ObjectSystem]
     public class PingComponentDestroySystem: DestroySystem<PingComponent>
     {
-        public override void Destroy(PingComponent self)
+        protected override void Destroy(PingComponent self)
         {
             self.Ping = default;
         }

+ 2 - 2
Codes/Hotfix/Client/Demo/Router/RouterAddressComponentSystem.cs

@@ -11,7 +11,7 @@ namespace ET.Client
     {
         public class RouterAddressComponentAwakeSystem: AwakeSystem<RouterAddressComponent, string>
         {
-            public override void Awake(RouterAddressComponent self, string routerManagerAddress)
+            protected override void Awake(RouterAddressComponent self, string routerManagerAddress)
             {
                 self.RouterManagerAddress = routerManagerAddress;
             }
@@ -22,7 +22,7 @@ namespace ET.Client
             await self.GetAllRouter();
         }
 
-        public static async ETTask GetAllRouter(this RouterAddressComponent self)
+        private static async ETTask GetAllRouter(this RouterAddressComponent self)
         {
             string url = $"http://{self.RouterManagerAddress}/get_router?v={RandomHelper.RandUInt32()}";
             Log.Debug($"start get router info: {url}");

+ 1 - 1
Codes/Hotfix/Client/Demo/Router/RouterCheckComponentSystem.cs

@@ -6,7 +6,7 @@ namespace ET.Client
     [ObjectSystem]
     public class RouterCheckComponentAwakeSystem: AwakeSystem<RouterCheckComponent>
     {
-        public override void Awake(RouterCheckComponent self)
+        protected override void Awake(RouterCheckComponent self)
         {
             CheckAsync(self).Coroutine();
         }

+ 2 - 2
Codes/Hotfix/Client/Demo/Scene/ClientSceneFlagComponentSystem.cs

@@ -3,7 +3,7 @@
     [ObjectSystem]
     public class ClientSceneFlagComponentDestroySystem: DestroySystem<ClientSceneFlagComponent>
     {
-        public override void Destroy(ClientSceneFlagComponent self)
+        protected override void Destroy(ClientSceneFlagComponent self)
         {
             ClientSceneManagerComponent.Instance.Remove(self.DomainZone());
         }
@@ -12,7 +12,7 @@
     [ObjectSystem]
     public class ClientSceneFlagComponentAwakeSystem: AwakeSystem<ClientSceneFlagComponent>
     {
-        public override void Awake(ClientSceneFlagComponent self)
+        protected override void Awake(ClientSceneFlagComponent self)
         {
             ClientSceneManagerComponent.Instance.Add(self.GetParent<Scene>());
         }

+ 2 - 2
Codes/Hotfix/Client/Demo/Scene/ClientSceneManagerComponentSystem.cs

@@ -8,7 +8,7 @@ namespace ET.Client
         [ObjectSystem]
         public class ClientSceneManagerComponentAwakeSystem: AwakeSystem<ClientSceneManagerComponent>
         {
-            public override void Awake(ClientSceneManagerComponent self)
+            protected override void Awake(ClientSceneManagerComponent self)
             {
                 ClientSceneManagerComponent.Instance = self;
             }
@@ -17,7 +17,7 @@ namespace ET.Client
         [ObjectSystem]
         public class ClientSceneManagerComponentDestroySystem: DestroySystem<ClientSceneManagerComponent>
         {
-            public override void Destroy(ClientSceneManagerComponent self)
+            protected override void Destroy(ClientSceneManagerComponent self)
             {
                 self.ClientScenes.Clear();
             }

+ 1 - 1
Codes/Hotfix/Client/Demo/Session/SessionComponentSystem.cs

@@ -2,7 +2,7 @@
 {
 	public class SessionComponentDestroySystem: DestroySystem<SessionComponent>
 	{
-		public override void Destroy(SessionComponent self)
+		protected override void Destroy(SessionComponent self)
 		{
 			self.Session.Dispose();
 		}

+ 1 - 1
Codes/Hotfix/Server/Demo/Gate/PlayerSystem.cs

@@ -6,7 +6,7 @@
         [ObjectSystem]
         public class PlayerAwakeSystem : AwakeSystem<Player, string>
         {
-            public override void Awake(Player self, string a)
+            protected override void Awake(Player self, string a)
             {
                 self.Account = a;
             }

+ 1 - 1
Codes/Hotfix/Server/Demo/Gate/SessionPlayerComponentSystem.cs

@@ -6,7 +6,7 @@ namespace ET.Server
 	{
 		public class SessionPlayerComponentDestroySystem: DestroySystem<SessionPlayerComponent>
 		{
-			public override void Destroy(SessionPlayerComponent self)
+			protected override void Destroy(SessionPlayerComponent self)
 			{
 				// 发送断线消息
 				ActorLocationSenderComponent.Instance.Send(self.PlayerId, new G2M_SessionDisconnect());

+ 1 - 1
Codes/Hotfix/Server/Demo/Map/Unit/UnitGateComponentSystem.cs

@@ -4,7 +4,7 @@
     {
         public class UnitGateComponentAwakeSystem : AwakeSystem<UnitGateComponent, long>
         {
-            public override void Awake(UnitGateComponent self, long a)
+            protected override void Awake(UnitGateComponent self, long a)
             {
                 self.GateSessionActorId = a;
             }

+ 2 - 2
Codes/Hotfix/Server/Demo/Watcher/WatcherComponentSystem.cs

@@ -8,7 +8,7 @@ namespace ET.Server
     {
         public class WatcherComponentAwakeSystem: AwakeSystem<WatcherComponent>
         {
-            public override void Awake(WatcherComponent self)
+            protected override void Awake(WatcherComponent self)
             {
                 WatcherComponent.Instance = self;
             }
@@ -16,7 +16,7 @@ namespace ET.Server
     
         public class WatcherComponentDestroySystem: DestroySystem<WatcherComponent>
         {
-            public override void Destroy(WatcherComponent self)
+            protected override void Destroy(WatcherComponent self)
             {
                 WatcherComponent.Instance = null;
             }

+ 2 - 2
Codes/Hotfix/Server/Module/AOI/AOIEntitySystem.cs

@@ -10,7 +10,7 @@ namespace ET.Server
         [ObjectSystem]
         public class AwakeSystem: AwakeSystem<AOIEntity, int, Vector3>
         {
-            public override void Awake(AOIEntity self, int distance, Vector3 pos)
+            protected override void Awake(AOIEntity self, int distance, Vector3 pos)
             {
                 self.ViewDistance = distance;
                 self.Domain.GetComponent<AOIManagerComponent>().Add(self, pos.x, pos.z);
@@ -20,7 +20,7 @@ namespace ET.Server
         [ObjectSystem]
         public class DestroySystem: DestroySystem<AOIEntity>
         {
-            public override void Destroy(AOIEntity self)
+            protected override void Destroy(AOIEntity self)
             {
                 self.Domain.GetComponent<AOIManagerComponent>()?.Remove(self);
                 self.ViewDistance = 0;

+ 1 - 1
Codes/Hotfix/Server/Module/AOI/CellSystem.cs

@@ -9,7 +9,7 @@ namespace ET.Server
         [ObjectSystem]
         public class CellDestroySystem: DestroySystem<Cell>
         {
-            public override void Destroy(Cell self)
+            protected override void Destroy(Cell self)
             {
                 self.AOIUnits.Clear();
 

+ 3 - 3
Codes/Hotfix/Server/Module/Actor/ActorMessageDispatcherComponentSystem.cs

@@ -12,7 +12,7 @@ namespace ET.Server
         [ObjectSystem]
         public class ActorMessageDispatcherComponentAwakeSystem: AwakeSystem<ActorMessageDispatcherComponent>
         {
-            public override void Awake(ActorMessageDispatcherComponent self)
+            protected override void Awake(ActorMessageDispatcherComponent self)
             {
                 ActorMessageDispatcherComponent.Instance = self;
                 self.Awake();
@@ -22,7 +22,7 @@ namespace ET.Server
         [ObjectSystem]
         public class ActorMessageDispatcherComponentLoadSystem: LoadSystem<ActorMessageDispatcherComponent>
         {
-            public override void Load(ActorMessageDispatcherComponent self)
+            protected override void Load(ActorMessageDispatcherComponent self)
             {
                 self.Load();
             }
@@ -31,7 +31,7 @@ namespace ET.Server
         [ObjectSystem]
         public class ActorMessageDispatcherComponentDestroySystem: DestroySystem<ActorMessageDispatcherComponent>
         {
-            public override void Destroy(ActorMessageDispatcherComponent self)
+            protected override void Destroy(ActorMessageDispatcherComponent self)
             {
                 self.ActorMessageHandlers.Clear();
                 ActorMessageDispatcherComponent.Instance = null;

+ 2 - 2
Codes/Hotfix/Server/Module/Actor/ActorMessageSenderComponentSystem.cs

@@ -25,7 +25,7 @@ namespace ET.Server
         [ObjectSystem]
         public class ActorMessageSenderComponentAwakeSystem: AwakeSystem<ActorMessageSenderComponent>
         {
-            public override void Awake(ActorMessageSenderComponent self)
+            protected override void Awake(ActorMessageSenderComponent self)
             {
                 ActorMessageSenderComponent.Instance = self;
 
@@ -36,7 +36,7 @@ namespace ET.Server
         [ObjectSystem]
         public class ActorMessageSenderComponentDestroySystem: DestroySystem<ActorMessageSenderComponent>
         {
-            public override void Destroy(ActorMessageSenderComponent self)
+            protected override void Destroy(ActorMessageSenderComponent self)
             {
                 ActorMessageSenderComponent.Instance = null;
                 TimerComponent.Instance.Remove(ref self.TimeoutCheckTimer);

+ 2 - 2
Codes/Hotfix/Server/Module/Actor/MailBoxComponentSystem.cs

@@ -5,7 +5,7 @@ namespace ET.Server
     [ObjectSystem]
     public class MailBoxComponentAwakeSystem: AwakeSystem<MailBoxComponent>
     {
-        public override void Awake(MailBoxComponent self)
+        protected override void Awake(MailBoxComponent self)
         {
             self.MailboxType = MailboxType.MessageDispatcher;
         }
@@ -14,7 +14,7 @@ namespace ET.Server
     [ObjectSystem]
     public class MailBoxComponentAwake1System: AwakeSystem<MailBoxComponent, MailboxType>
     {
-        public override void Awake(MailBoxComponent self, MailboxType mailboxType)
+        protected override void Awake(MailBoxComponent self, MailboxType mailboxType)
         {
             self.MailboxType = mailboxType;
         }

+ 2 - 2
Codes/Hotfix/Server/Module/ActorLocation/ActorLocationSenderComponentSystem.cs

@@ -22,7 +22,7 @@ namespace ET.Server
     [ObjectSystem]
     public class ActorLocationSenderComponentAwakeSystem: AwakeSystem<ActorLocationSenderComponent>
     {
-        public override void Awake(ActorLocationSenderComponent self)
+        protected override void Awake(ActorLocationSenderComponent self)
         {
             ActorLocationSenderComponent.Instance = self;
 
@@ -35,7 +35,7 @@ namespace ET.Server
     [ObjectSystem]
     public class ActorLocationSenderComponentDestroySystem: DestroySystem<ActorLocationSenderComponent>
     {
-        public override void Destroy(ActorLocationSenderComponent self)
+        protected override void Destroy(ActorLocationSenderComponent self)
         {
             ActorLocationSenderComponent.Instance = null;
             TimerComponent.Instance.Remove(ref self.CheckTimer);

+ 2 - 2
Codes/Hotfix/Server/Module/ActorLocation/ActorLocationSenderSystem.cs

@@ -5,7 +5,7 @@ namespace ET.Server
     [ObjectSystem]
     public class ActorLocationSenderAwakeSystem: AwakeSystem<ActorLocationSender>
     {
-        public override void Awake(ActorLocationSender self)
+        protected override void Awake(ActorLocationSender self)
         {
             self.LastSendOrRecvTime = TimeHelper.ServerNow();
             self.ActorId = 0;
@@ -16,7 +16,7 @@ namespace ET.Server
     [ObjectSystem]
     public class ActorLocationSenderDestroySystem: DestroySystem<ActorLocationSender>
     {
-        public override void Destroy(ActorLocationSender self)
+        protected override void Destroy(ActorLocationSender self)
         {
             Log.Debug($"actor location remove: {self.Id}");
             self.LastSendOrRecvTime = 0;

+ 2 - 2
Codes/Hotfix/Server/Module/ActorLocation/LocationComponentSystem.cs

@@ -3,7 +3,7 @@
     [ObjectSystem]
     public class LockInfoAwakeSystem: AwakeSystem<LockInfo, long, CoroutineLock>
     {
-        public override void Awake(LockInfo self, long lockInstanceId, CoroutineLock coroutineLock)
+        protected override void Awake(LockInfo self, long lockInstanceId, CoroutineLock coroutineLock)
         {
             self.CoroutineLock = coroutineLock;
             self.LockInstanceId = lockInstanceId;
@@ -13,7 +13,7 @@
     [ObjectSystem]
     public class LockInfoDestroySystem: DestroySystem<LockInfo>
     {
-        public override void Destroy(LockInfo self)
+        protected override void Destroy(LockInfo self)
         {
             self.CoroutineLock.Dispose();
             self.LockInstanceId = 0;

+ 2 - 2
Codes/Hotfix/Server/Module/ActorLocation/LocationProxyComponentSystem.cs

@@ -5,7 +5,7 @@ namespace ET.Server
     [ObjectSystem]
     public class LocationProxyComponentAwakeSystem: AwakeSystem<LocationProxyComponent>
     {
-        public override void Awake(LocationProxyComponent self)
+        protected override void Awake(LocationProxyComponent self)
         {
             LocationProxyComponent.Instance = self;
         }
@@ -14,7 +14,7 @@ namespace ET.Server
     [ObjectSystem]
     public class LocationProxyComponentDestroySystem: DestroySystem<LocationProxyComponent>
     {
-        public override void Destroy(LocationProxyComponent self)
+        protected override void Destroy(LocationProxyComponent self)
         {
             LocationProxyComponent.Instance = null;
         }

+ 2 - 2
Codes/Hotfix/Server/Module/Console/ConsoleComponentSystem.cs

@@ -12,7 +12,7 @@ namespace ET.Server
         [ObjectSystem]
         public class ConsoleComponentAwakeSystem: AwakeSystem<ConsoleComponent>
         {
-            public override void Awake(ConsoleComponent self)
+            protected override void Awake(ConsoleComponent self)
             {
                 self.Load();
             
@@ -23,7 +23,7 @@ namespace ET.Server
         [ObjectSystem]
         public class ConsoleComponentLoadSystem: LoadSystem<ConsoleComponent>
         {
-            public override void Load(ConsoleComponent self)
+            protected override void Load(ConsoleComponent self)
             {
                 self.Load();
             }

+ 1 - 1
Codes/Hotfix/Server/Module/DB/DBComponentSystem.cs

@@ -10,7 +10,7 @@ namespace ET.Server
     {
 	    public class DBComponentAwakeSystem : AwakeSystem<DBComponent, string, string, int>
 	    {
-		    public override void Awake(DBComponent self, string dbConnection, string dbName, int zone)
+			protected override void Awake(DBComponent self, string dbConnection, string dbName, int zone)
 		    {
 			    self.mongoClient = new MongoClient(dbConnection);
 			    self.database = self.mongoClient.GetDatabase(dbName);

+ 2 - 2
Codes/Hotfix/Server/Module/DB/DBManagerComponentSystem.cs

@@ -8,7 +8,7 @@ namespace ET.Server
         [ObjectSystem]
         public class DBManagerComponentAwakeSystem: AwakeSystem<DBManagerComponent>
         {
-            public override void Awake(DBManagerComponent self)
+            protected override void Awake(DBManagerComponent self)
             {
                 DBManagerComponent.Instance = self;
             }
@@ -17,7 +17,7 @@ namespace ET.Server
         [ObjectSystem]
         public class DBManagerComponentDestroySystem: DestroySystem<DBManagerComponent>
         {
-            public override void Destroy(DBManagerComponent self)
+            protected override void Destroy(DBManagerComponent self)
             {
                 DBManagerComponent.Instance = null;
             }

+ 3 - 3
Codes/Hotfix/Server/Module/Http/HttpComponentSystem.cs

@@ -9,7 +9,7 @@ namespace ET.Server
     {
         public class HttpComponentAwakeSystem : AwakeSystem<HttpComponent, string>
         {
-            public override void Awake(HttpComponent self, string address)
+            protected override void Awake(HttpComponent self, string address)
             {
                 try
                 {
@@ -40,7 +40,7 @@ namespace ET.Server
         [ObjectSystem]
         public class HttpComponentLoadSystem: LoadSystem<HttpComponent>
         {
-            public override void Load(HttpComponent self)
+            protected override void Load(HttpComponent self)
             {
                 self.Load();
             }
@@ -49,7 +49,7 @@ namespace ET.Server
         [ObjectSystem]
         public class HttpComponentDestroySystem: DestroySystem<HttpComponent>
         {
-            public override void Destroy(HttpComponent self)
+            protected override void Destroy(HttpComponent self)
             {
                 self.Listener.Stop();
                 self.Listener.Close();

+ 3 - 3
Codes/Hotfix/Server/Module/MessageInner/NetInnerComponentSystem.cs

@@ -10,7 +10,7 @@ namespace ET.Server
         [ObjectSystem]
         public class NetInnerComponentAwakeSystem: AwakeSystem<NetInnerComponent, int>
         {
-            public override void Awake(NetInnerComponent self, int sessionStreamDispatcherType)
+            protected override void Awake(NetInnerComponent self, int sessionStreamDispatcherType)
             {
                 NetInnerComponent.Instance = self;
                 self.SessionStreamDispatcherType = sessionStreamDispatcherType;
@@ -26,7 +26,7 @@ namespace ET.Server
         [ObjectSystem]
         public class NetInnerComponentAwake1System: AwakeSystem<NetInnerComponent, IPEndPoint, int>
         {
-            public override void Awake(NetInnerComponent self, IPEndPoint address, int sessionStreamDispatcherType)
+            protected override void Awake(NetInnerComponent self, IPEndPoint address, int sessionStreamDispatcherType)
             {
                 NetInnerComponent.Instance = self;
                 self.SessionStreamDispatcherType = sessionStreamDispatcherType;
@@ -43,7 +43,7 @@ namespace ET.Server
         [ObjectSystem]
         public class NetInnerComponentDestroySystem: DestroySystem<NetInnerComponent>
         {
-            public override void Destroy(NetInnerComponent self)
+            protected override void Destroy(NetInnerComponent self)
             {
                 NetThreadComponent.Instance.Remove(self.Service);
                 self.Service.Destroy();

+ 2 - 2
Codes/Hotfix/Server/Module/RobotCase/RobotCaseComponentSystem.cs

@@ -9,7 +9,7 @@ namespace ET.Server
         [ObjectSystem]
         public class RobotCaseComponentAwakeSystem: AwakeSystem<RobotCaseComponent>
         {
-            public override void Awake(RobotCaseComponent self)
+            protected override void Awake(RobotCaseComponent self)
             {
                 RobotCaseComponent.Instance = self;
             }
@@ -18,7 +18,7 @@ namespace ET.Server
         [ObjectSystem]
         public class RobotCaseComponentDestroySystem: DestroySystem<RobotCaseComponent>
         {
-            public override void Destroy(RobotCaseComponent self)
+            protected override void Destroy(RobotCaseComponent self)
             {
                 RobotCaseComponent.Instance = null;
             }

+ 2 - 2
Codes/Hotfix/Server/Module/RobotCase/RobotCaseDispatcherComponentSystem.cs

@@ -10,7 +10,7 @@ namespace ET.Server
         [ObjectSystem]
         public class RobotCaseDispatcherComponentAwakeSystem: AwakeSystem<RobotCaseDispatcherComponent>
         {
-            public override void Awake(RobotCaseDispatcherComponent self)
+            protected override void Awake(RobotCaseDispatcherComponent self)
             {
                 RobotCaseDispatcherComponent.Instance = self;
                 self.Load();
@@ -20,7 +20,7 @@ namespace ET.Server
         [ObjectSystem]
         public class RobotCaseDispatcherComponentLoadSystem: LoadSystem<RobotCaseDispatcherComponent>
         {
-            public override void Load(RobotCaseDispatcherComponent self)
+            protected override void Load(RobotCaseDispatcherComponent self)
             {
                 self.Load();
             }

+ 3 - 3
Codes/Hotfix/Server/Module/Router/RouterComponentSystem.cs

@@ -12,7 +12,7 @@ namespace ET.Server
         [ObjectSystem]
         public class RouterComponentAwakeSystem: AwakeSystem<RouterComponent, IPEndPoint, string>
         {
-            public override void Awake(RouterComponent self, IPEndPoint outerAddress, string innerIP)
+            protected override void Awake(RouterComponent self, IPEndPoint outerAddress, string innerIP)
             {
                 self.OuterSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
                 self.OuterSocket.Bind(outerAddress);
@@ -46,7 +46,7 @@ namespace ET.Server
         [ObjectSystem]
         public class RouterComponentDestroySystem: DestroySystem<RouterComponent>
         {
-            public override void Destroy(RouterComponent self)
+            protected override void Destroy(RouterComponent self)
             {
                 self.OuterSocket.Dispose();
                 self.InnerSocket.Dispose();
@@ -58,7 +58,7 @@ namespace ET.Server
         [ObjectSystem]
         public class RouterComponentUpdateSystem: UpdateSystem<RouterComponent>
         {
-            public override void Update(RouterComponent self)
+            protected override void Update(RouterComponent self)
             {
                 long timeNow = TimeHelper.ClientNow();
                 self.RecvOuter(timeNow);

+ 2 - 2
Codes/Hotfix/Server/Module/Router/RouterNodeSystem.cs

@@ -6,7 +6,7 @@
         [ObjectSystem]
         public class RouterNodeAwakeSystem: AwakeSystem<RouterNode>
         {
-            public override void Awake(RouterNode self)
+            protected override void Awake(RouterNode self)
             {
                 long timeNow = TimeHelper.ServerNow();
                 self.LastRecvInnerTime = timeNow;
@@ -22,7 +22,7 @@
         [ObjectSystem]
         public class RouterNodeDestroySystem: DestroySystem<RouterNode>
         {
-            public override void Destroy(RouterNode self)
+            protected override void Destroy(RouterNode self)
             {
                 self.OuterConn = 0;
                 self.InnerConn = 0;

+ 2 - 2
Codes/Hotfix/Share/Module/AI/AIComponentSystem.cs

@@ -25,7 +25,7 @@ namespace ET
         [ObjectSystem]
         public class AIComponentAwakeSystem: AwakeSystem<AIComponent, int>
         {
-            public override void Awake(AIComponent self, int aiConfigId)
+            protected override void Awake(AIComponent self, int aiConfigId)
             {
                 self.AIConfigId = aiConfigId;
                 self.Timer = TimerComponent.Instance.NewRepeatedTimer(1000, CallbackType.AITimer, self);
@@ -35,7 +35,7 @@ namespace ET
         [ObjectSystem]
         public class AIComponentDestroySystem: DestroySystem<AIComponent>
         {
-            public override void Destroy(AIComponent self)
+            protected override void Destroy(AIComponent self)
             {
                 TimerComponent.Instance?.Remove(ref self.Timer);
                 self.CancellationToken?.Cancel();

+ 3 - 3
Codes/Hotfix/Share/Module/AI/AIDispatcherComponentSystem.cs

@@ -8,7 +8,7 @@ namespace ET
         [ObjectSystem]
         public class AIDispatcherComponentAwakeSystem: AwakeSystem<AIDispatcherComponent>
         {
-            public override void Awake(AIDispatcherComponent self)
+            protected override void Awake(AIDispatcherComponent self)
             {
                 AIDispatcherComponent.Instance = self;
                 self.Load();
@@ -18,7 +18,7 @@ namespace ET
         [ObjectSystem]
         public class AIDispatcherComponentLoadSystem: LoadSystem<AIDispatcherComponent>
         {
-            public override void Load(AIDispatcherComponent self)
+            protected override void Load(AIDispatcherComponent self)
             {
                 self.Load();
             }
@@ -27,7 +27,7 @@ namespace ET
         [ObjectSystem]
         public class AIDispatcherComponentDestroySystem: DestroySystem<AIDispatcherComponent>
         {
-            public override void Destroy(AIDispatcherComponent self)
+            protected override void Destroy(AIDispatcherComponent self)
             {
                 self.AIHandlers.Clear();
                 AIDispatcherComponent.Instance = null;

+ 2 - 2
Codes/Hotfix/Share/Module/Config/ConfigComponentSystem.cs

@@ -10,7 +10,7 @@ namespace ET
 		[ObjectSystem]
 		public class ConfigAwakeSystem : AwakeSystem<ConfigComponent>
 		{
-			public override void Awake(ConfigComponent self)
+			protected override void Awake(ConfigComponent self)
 			{
 				ConfigComponent.Instance = self;
 			}
@@ -19,7 +19,7 @@ namespace ET
 		[ObjectSystem]
 		public class ConfigDestroySystem : DestroySystem<ConfigComponent>
 		{
-			public override void Destroy(ConfigComponent self)
+			protected override void Destroy(ConfigComponent self)
 			{
 				ConfigComponent.Instance = null;
 			}

+ 3 - 3
Codes/Hotfix/Share/Module/Message/MessageDispatcherComponentSystem.cs

@@ -12,7 +12,7 @@ namespace ET
         [ObjectSystem]
         public class MessageDispatcherComponentAwakeSystem: AwakeSystem<MessageDispatcherComponent>
         {
-            public override void Awake(MessageDispatcherComponent self)
+            protected override void Awake(MessageDispatcherComponent self)
             {
                 MessageDispatcherComponent.Instance = self;
                 self.Load();
@@ -22,7 +22,7 @@ namespace ET
         [ObjectSystem]
         public class MessageDispatcherComponentLoadSystem: LoadSystem<MessageDispatcherComponent>
         {
-            public override void Load(MessageDispatcherComponent self)
+            protected override void Load(MessageDispatcherComponent self)
             {
                 self.Load();
             }
@@ -31,7 +31,7 @@ namespace ET
         [ObjectSystem]
         public class MessageDispatcherComponentDestroySystem: DestroySystem<MessageDispatcherComponent>
         {
-            public override void Destroy(MessageDispatcherComponent self)
+            protected override void Destroy(MessageDispatcherComponent self)
             {
                 MessageDispatcherComponent.Instance = null;
                 self.Handlers.Clear();

+ 3 - 3
Codes/Hotfix/Share/Module/Message/NetKcpComponentSystem.cs

@@ -10,7 +10,7 @@ namespace ET
         [ObjectSystem]
         public class NetKcpComponentAwakeSystem: AwakeSystem<NetKcpComponent, int>
         {
-            public override void Awake(NetKcpComponent self, int sessionStreamDispatcherType)
+            protected override void Awake(NetKcpComponent self, int sessionStreamDispatcherType)
             {
                 self.SessionStreamDispatcherType = sessionStreamDispatcherType;
             
@@ -25,7 +25,7 @@ namespace ET
         [ObjectSystem]
         public class NetKcpComponentAwake1System: AwakeSystem<NetKcpComponent, IPEndPoint, int>
         {
-            public override void Awake(NetKcpComponent self, IPEndPoint address, int sessionStreamDispatcherType)
+            protected override void Awake(NetKcpComponent self, IPEndPoint address, int sessionStreamDispatcherType)
             {
                 self.SessionStreamDispatcherType = sessionStreamDispatcherType;
             
@@ -41,7 +41,7 @@ namespace ET
         [ObjectSystem]
         public class NetKcpComponentDestroySystem: DestroySystem<NetKcpComponent>
         {
-            public override void Destroy(NetKcpComponent self)
+            protected override void Destroy(NetKcpComponent self)
             {
                 NetThreadComponent.Instance.Remove(self.Service);
                 self.Service.Destroy();

+ 3 - 3
Codes/Hotfix/Share/Module/Message/NetThreadComponentSystem.cs

@@ -9,7 +9,7 @@ namespace ET
         [ObjectSystem]
         public class NetThreadComponentAwakeSystem: AwakeSystem<NetThreadComponent>
         {
-            public override void Awake(NetThreadComponent self)
+            protected override void Awake(NetThreadComponent self)
             {
                 NetThreadComponent.Instance = self;
             
@@ -20,7 +20,7 @@ namespace ET
         [ObjectSystem]
         public class NetThreadComponentUpdateSystem: LateUpdateSystem<NetThreadComponent>
         {
-            public override void LateUpdate(NetThreadComponent self)
+            protected override void LateUpdate(NetThreadComponent self)
             {
                 foreach (AService service in self.Services)
                 {
@@ -32,7 +32,7 @@ namespace ET
         [ObjectSystem]
         public class NetThreadComponentDestroySystem: DestroySystem<NetThreadComponent>
         {
-            public override void Destroy(NetThreadComponent self)
+            protected override void Destroy(NetThreadComponent self)
             {
                 self.Stop();
             }

+ 2 - 2
Codes/Hotfix/Share/Module/Message/SessionAcceptTimeoutComponentSystem.cs

@@ -21,7 +21,7 @@ namespace ET
     [ObjectSystem]
     public class SessionAcceptTimeoutComponentAwakeSystem: AwakeSystem<SessionAcceptTimeoutComponent>
     {
-        public override void Awake(SessionAcceptTimeoutComponent self)
+        protected override void Awake(SessionAcceptTimeoutComponent self)
         {
             self.Timer = TimerComponent.Instance.NewOnceTimer(TimeHelper.ServerNow() + 5000, CallbackType.SessionAcceptTimeout, self);
         }
@@ -30,7 +30,7 @@ namespace ET
     [ObjectSystem]
     public class SessionAcceptTimeoutComponentDestroySystem: DestroySystem<SessionAcceptTimeoutComponent>
     {
-        public override void Destroy(SessionAcceptTimeoutComponent self)
+        protected override void Destroy(SessionAcceptTimeoutComponent self)
         {
             TimerComponent.Instance.Remove(ref self.Timer);
         }

+ 2 - 2
Codes/Hotfix/Share/Module/Message/SessionIdleCheckerComponentSystem.cs

@@ -21,7 +21,7 @@ namespace ET
     [ObjectSystem]
     public class SessionIdleCheckerComponentAwakeSystem: AwakeSystem<SessionIdleCheckerComponent, int>
     {
-        public override void Awake(SessionIdleCheckerComponent self, int checkInteral)
+        protected override void Awake(SessionIdleCheckerComponent self, int checkInteral)
         {
             self.RepeatedTimer = TimerComponent.Instance.NewRepeatedTimer(checkInteral, CallbackType.SessionIdleChecker, self);
         }
@@ -30,7 +30,7 @@ namespace ET
     [ObjectSystem]
     public class SessionIdleCheckerComponentDestroySystem: DestroySystem<SessionIdleCheckerComponent>
     {
-        public override void Destroy(SessionIdleCheckerComponent self)
+        protected override void Destroy(SessionIdleCheckerComponent self)
         {
             TimerComponent.Instance?.Remove(ref self.RepeatedTimer);
         }

+ 2 - 2
Codes/Hotfix/Share/Module/Move/MoveComponentSystem.cs

@@ -26,7 +26,7 @@ namespace ET
         [ObjectSystem]
         public class MoveComponentDestroySystem: DestroySystem<MoveComponent>
         {
-            public override void Destroy(MoveComponent self)
+            protected override void Destroy(MoveComponent self)
             {
                 self.Clear();
             }
@@ -35,7 +35,7 @@ namespace ET
         [ObjectSystem]
         public class MoveComponentAwakeSystem: AwakeSystem<MoveComponent>
         {
-            public override void Awake(MoveComponent self)
+            protected override void Awake(MoveComponent self)
             {
                 self.StartTime = 0;
                 self.StartPos = Vector3.zero;

+ 1 - 1
Codes/Hotfix/Share/Module/Recast/NavmeshComponentSystem.cs

@@ -7,7 +7,7 @@ namespace ET
     {
         public class AwakeSystem: AwakeSystem<NavmeshComponent>
         {
-            public override void Awake(NavmeshComponent self)
+            protected override void Awake(NavmeshComponent self)
             {
                 NavmeshComponent.Instance = self;
             }

+ 2 - 2
Codes/Hotfix/Share/Module/Recast/PathfindingComponentSystem.cs

@@ -10,7 +10,7 @@ namespace ET
         [ObjectSystem]
         public class AwakeSystem: AwakeSystem<PathfindingComponent, string>
         {
-            public override void Awake(PathfindingComponent self, string name)
+            protected override void Awake(PathfindingComponent self, string name)
             {
                 self.Name = name;
                 self.NavMesh = NavmeshComponent.Instance.Get(name);
@@ -25,7 +25,7 @@ namespace ET
         [ObjectSystem]
         public class DestroySystem: DestroySystem<PathfindingComponent>
         {
-            public override void Destroy(PathfindingComponent self)
+            protected override void Destroy(PathfindingComponent self)
             {
                 self.Name = string.Empty;
                 self.NavMesh = 0;

+ 2 - 2
Codes/Hotfix/Share/Module/Unit/UnitComponentSystem.cs

@@ -3,7 +3,7 @@
 	[ObjectSystem]
 	public class UnitComponentAwakeSystem : AwakeSystem<UnitComponent>
 	{
-		public override void Awake(UnitComponent self)
+		protected override void Awake(UnitComponent self)
 		{
 		}
 	}
@@ -11,7 +11,7 @@
 	[ObjectSystem]
 	public class UnitComponentDestroySystem : DestroySystem<UnitComponent>
 	{
-		public override void Destroy(UnitComponent self)
+		protected override void Destroy(UnitComponent self)
 		{
 		}
 	}

+ 1 - 1
Codes/Hotfix/Share/Module/Unit/UnitSystem.cs

@@ -3,7 +3,7 @@ namespace ET
     [ObjectSystem]
     public class UnitSystem: AwakeSystem<Unit, int>
     {
-        public override void Awake(Unit self, int configId)
+        protected override void Awake(Unit self, int configId)
         {
             self.ConfigId = configId;
         }

+ 5 - 5
Codes/HotfixView/Client/Demo/Camera/CameraComponentSystem.cs

@@ -8,7 +8,7 @@ namespace ET.Client
 		[ObjectSystem]
 		public class CameraComponentAwakeSystem : AwakeSystem<CameraComponent>
 		{
-			public override void Awake(CameraComponent self)
+			protected override void Awake(CameraComponent self)
 			{
 				self.Awake();
 			}
@@ -17,18 +17,18 @@ namespace ET.Client
 		[ObjectSystem]
 		public class CameraComponentLateUpdateSystem : LateUpdateSystem<CameraComponent>
 		{
-			public override void LateUpdate(CameraComponent self)
+			protected override void LateUpdate(CameraComponent self)
 			{
 				self.LateUpdate();
 			}
 		}
-		
-		public static void Awake(this CameraComponent self)
+
+		private static void Awake(this CameraComponent self)
 		{
 			self.mainCamera = Camera.main;
 		}
 
-		public static void LateUpdate(this CameraComponent self)
+		private static void LateUpdate(this CameraComponent self)
 		{
 			// 摄像机每帧更新位置
 			self.UpdatePosition();

+ 1 - 1
Codes/HotfixView/Client/Demo/Global/GlobalComponentSystem.cs

@@ -5,7 +5,7 @@ namespace ET.Client
     [ObjectSystem]
     public class GlobalComponentAwakeSystem: AwakeSystem<GlobalComponent>
     {
-        public override void Awake(GlobalComponent self)
+        protected override void Awake(GlobalComponent self)
         {
             GlobalComponent.Instance = self;
             

+ 2 - 2
Codes/HotfixView/Client/Demo/Opera/OperaComponentSystem.cs

@@ -9,7 +9,7 @@ namespace ET.Client
         [ObjectSystem]
         public class OperaComponentAwakeSystem : AwakeSystem<OperaComponent>
         {
-            public override void Awake(OperaComponent self)
+            protected override void Awake(OperaComponent self)
             {
                 self.mapMask = LayerMask.GetMask("Map");
             }
@@ -18,7 +18,7 @@ namespace ET.Client
         [ObjectSystem]
         public class OperaComponentUpdateSystem : UpdateSystem<OperaComponent>
         {
-            public override void Update(OperaComponent self)
+            protected override void Update(OperaComponent self)
             {
                 self.Update();
             }

+ 1 - 1
Codes/HotfixView/Client/Demo/UI/UILoading/UILoadingComponentSystem.cs

@@ -6,7 +6,7 @@ namespace ET.Client
     [ObjectSystem]
     public class UiLoadingComponentAwakeSystem : AwakeSystem<UILoadingComponent>
     {
-        public override void Awake(UILoadingComponent self)
+        protected override void Awake(UILoadingComponent self)
         {
             self.text = self.GetParent<UI>().GameObject.Get<GameObject>("Text").GetComponent<Text>();
             self.StartAsync().Coroutine();

+ 1 - 1
Codes/HotfixView/Client/Demo/UI/UILobby/UILobbyComponentSystem.cs

@@ -9,7 +9,7 @@ namespace ET.Client
         [ObjectSystem]
         public class UILobbyComponentAwakeSystem: AwakeSystem<UILobbyComponent>
         {
-            public override void Awake(UILobbyComponent self)
+            protected override void Awake(UILobbyComponent self)
             {
                 ReferenceCollector rc = self.GetParent<UI>().GameObject.GetComponent<ReferenceCollector>();
 

+ 1 - 1
Codes/HotfixView/Client/Demo/UI/UILogin/UILoginComponentSystem.cs

@@ -9,7 +9,7 @@ namespace ET.Client
 		[ObjectSystem]
 		public class UILoginComponentAwakeSystem : AwakeSystem<UILoginComponent>
 		{
-			public override void Awake(UILoginComponent self)
+			protected override void Awake(UILoginComponent self)
 			{
 				ReferenceCollector rc = self.GetParent<UI>().GameObject.GetComponent<ReferenceCollector>();
 				self.loginBtn = rc.Get<GameObject>("LoginBtn");

+ 3 - 3
Codes/HotfixView/Client/Demo/Unit/AnimatorComponentSystem.cs

@@ -9,7 +9,7 @@ namespace ET.Client
 		[ObjectSystem]
 		public class AnimatorComponentAwakeSystem : AwakeSystem<AnimatorComponent>
 		{
-			public override void Awake(AnimatorComponent self)
+			protected override void Awake(AnimatorComponent self)
 			{
 				self.Awake();
 			}
@@ -18,7 +18,7 @@ namespace ET.Client
 		[ObjectSystem]
 		public class AnimatorComponentUpdateSystem : UpdateSystem<AnimatorComponent>
 		{
-			public override void Update(AnimatorComponent self)
+			protected override void Update(AnimatorComponent self)
 			{
 				self.Update();
 			}
@@ -27,7 +27,7 @@ namespace ET.Client
 		[ObjectSystem]
 		public class AnimatorComponentDestroySystem : DestroySystem<AnimatorComponent>
 		{
-			public override void Destroy(AnimatorComponent self)
+			protected override void Destroy(AnimatorComponent self)
 			{
 				self.animationClips = null;
 				self.Parameter = null;

+ 1 - 1
Codes/HotfixView/Client/Demo/Unit/GameObjectComponentSystem.cs

@@ -7,7 +7,7 @@ namespace ET.Client
         [ObjectSystem]
         public class DestroySystem: DestroySystem<GameObjectComponent>
         {
-            public override void Destroy(GameObjectComponent self)
+            protected override void Destroy(GameObjectComponent self)
             {
                 UnityEngine.Object.Destroy(self.GameObject);
             }

+ 1 - 1
Codes/HotfixView/Client/Module/UI/UIEventComponentSystem.cs

@@ -13,7 +13,7 @@ namespace ET
 		[ObjectSystem]
 		public class UIEventComponentAwakeSystem : AwakeSystem<UIEventComponent>
 		{
-			public override void Awake(UIEventComponent self)
+			protected override void Awake(UIEventComponent self)
 			{
 				UIEventComponent.Instance = self;
 			

+ 2 - 2
Codes/Model/Server/Module/Console/ModeContex.cs

@@ -3,7 +3,7 @@
     [ObjectSystem]
     public class ModeContexAwakeSystem: AwakeSystem<ModeContex>
     {
-        public override void Awake(ModeContex self)
+        protected override void Awake(ModeContex self)
         {
             self.Mode = "";
         }
@@ -12,7 +12,7 @@
     [ObjectSystem]
     public class ModeContexDestroySystem: DestroySystem<ModeContex>
     {
-        public override void Destroy(ModeContex self)
+        protected override void Destroy(ModeContex self)
         {
             self.Mode = "";
         }

+ 2 - 2
Codes/Model/Share/Module/CoroutineLock/CoroutineLock.cs

@@ -5,7 +5,7 @@ namespace ET
     [ObjectSystem]
     public class CoroutineLockAwakeSystem: AwakeSystem<CoroutineLock, int, long, int>
     {
-        public override void Awake(CoroutineLock self, int type, long k, int count)
+        protected override void Awake(CoroutineLock self, int type, long k, int count)
         {
             self.coroutineLockType = type;
             self.key = k;
@@ -16,7 +16,7 @@ namespace ET
     [ObjectSystem]
     public class CoroutineLockDestroySystem: DestroySystem<CoroutineLock>
     {
-        public override void Destroy(CoroutineLock self)
+        protected override void Destroy(CoroutineLock self)
         {
             if (self.coroutineLockType != CoroutineLockType.None)
             {

+ 3 - 3
Codes/Model/Share/Module/CoroutineLock/CoroutineLockComponent.cs

@@ -9,7 +9,7 @@ namespace ET
         [ObjectSystem]
         public class CoroutineLockComponentAwakeSystem: AwakeSystem<CoroutineLockComponent>
         {
-            public override void Awake(CoroutineLockComponent self)
+            protected override void Awake(CoroutineLockComponent self)
             {
                 CoroutineLockComponent.Instance = self;
 
@@ -26,7 +26,7 @@ namespace ET
         [ObjectSystem]
         public class CoroutineLockComponentDestroySystem: DestroySystem<CoroutineLockComponent>
         {
-            public override void Destroy(CoroutineLockComponent self)
+            protected override void Destroy(CoroutineLockComponent self)
             {
                 self.list.Clear();
                 self.nextFrameRun.Clear();
@@ -41,7 +41,7 @@ namespace ET
         [FriendOf(typeof (CoroutineLock))]
         public class CoroutineLockComponentUpdateSystem: UpdateSystem<CoroutineLockComponent>
         {
-            public override void Update(CoroutineLockComponent self)
+            protected override void Update(CoroutineLockComponent self)
             {
                 // 检测超时的CoroutineLock
                 TimeoutCheck(self);

+ 2 - 2
Codes/Model/Share/Module/CoroutineLock/CoroutineLockQueue.cs

@@ -14,7 +14,7 @@ namespace ET
         [ObjectSystem]
         public class CoroutineLockQueueAwakeSystem: AwakeSystem<CoroutineLockQueue>
         {
-            public override void Awake(CoroutineLockQueue self)
+            protected override void Awake(CoroutineLockQueue self)
             {
                 self.queue.Clear();
             }
@@ -23,7 +23,7 @@ namespace ET
         [ObjectSystem]
         public class CoroutineLockQueueDestroySystem: DestroySystem<CoroutineLockQueue>
         {
-            public override void Destroy(CoroutineLockQueue self)
+            protected override void Destroy(CoroutineLockQueue self)
             {
                 self.queue.Clear();
             }

+ 2 - 2
Codes/Model/Share/Module/Message/OpcodeTypeComponent.cs

@@ -9,7 +9,7 @@ namespace ET
         [ObjectSystem]
         public class OpcodeTypeComponentAwakeSystem: AwakeSystem<OpcodeTypeComponent>
         {
-            public override void Awake(OpcodeTypeComponent self)
+            protected override void Awake(OpcodeTypeComponent self)
             {
                 OpcodeTypeComponent.Instance = self;
                 
@@ -67,7 +67,7 @@ namespace ET
         [ObjectSystem]
         public class OpcodeTypeComponentDestroySystem: DestroySystem<OpcodeTypeComponent>
         {
-            public override void Destroy(OpcodeTypeComponent self)
+            protected override void Destroy(OpcodeTypeComponent self)
             {
                 OpcodeTypeComponent.Instance = null;
             }

+ 2 - 2
Codes/Model/Share/Module/Message/Session.cs

@@ -24,7 +24,7 @@ namespace ET
         [ObjectSystem]
         public class SessionAwakeSystem: AwakeSystem<Session, AService>
         {
-            public override void Awake(Session self, AService aService)
+            protected override void Awake(Session self, AService aService)
             {
                 self.AService = aService;
                 long timeNow = TimeHelper.ClientNow();
@@ -40,7 +40,7 @@ namespace ET
         [ObjectSystem]
         public class SessionDestroySystem: DestroySystem<Session>
         {
-            public override void Destroy(Session self)
+            protected override void Destroy(Session self)
             {
                 self.AService.RemoveChannel(self.Id);
             

+ 2 - 2
Codes/Model/Share/Module/Numeric/NumericWatcherComponent.cs

@@ -9,7 +9,7 @@ namespace ET
         [ObjectSystem]
         public class NumericWatcherComponentAwakeSystem : AwakeSystem<NumericWatcherComponent>
         {
-            public override void Awake(NumericWatcherComponent self)
+            protected override void Awake(NumericWatcherComponent self)
             {
                 NumericWatcherComponent.Instance = self;
                 self.Init();
@@ -19,7 +19,7 @@ namespace ET
 	
         public class NumericWatcherComponentLoadSystem : LoadSystem<NumericWatcherComponent>
         {
-            public override void Load(NumericWatcherComponent self)
+            protected override void Load(NumericWatcherComponent self)
             {
                 self.Init();
             }

+ 2 - 2
Codes/Model/Share/Module/ObjectWait/ObjectWait.cs

@@ -27,7 +27,7 @@ namespace ET
         [ObjectSystem]
         public class ObjectWaitAwakeSystem: AwakeSystem<ObjectWait>
         {
-            public override void Awake(ObjectWait self)
+            protected override void Awake(ObjectWait self)
             {
                 self.tcss.Clear();
             }
@@ -36,7 +36,7 @@ namespace ET
         [ObjectSystem]
         public class ObjectWaitDestroySystem: DestroySystem<ObjectWait>
         {
-            public override void Destroy(ObjectWait self)
+            protected override void Destroy(ObjectWait self)
             {
                 foreach (object v in self.tcss.Values.ToArray())
                 {

+ 5 - 5
Codes/Model/Share/Module/Timer/TimerComponent.cs

@@ -14,7 +14,7 @@ namespace ET
     [ObjectSystem]
     public class TimerActionAwakeSystem: AwakeSystem<TimerAction, TimerClass, long, int, object>
     {
-        public override void Awake(TimerAction self, TimerClass timerClass, long time, int type, object obj)
+        protected override void Awake(TimerAction self, TimerClass timerClass, long time, int type, object obj)
         {
             self.TimerClass = timerClass;
             self.Object = obj;
@@ -26,7 +26,7 @@ namespace ET
     [ObjectSystem]
     public class TimerActionDestroySystem: DestroySystem<TimerAction>
     {
-        public override void Destroy(TimerAction self)
+        protected override void Destroy(TimerAction self)
         {
             self.Object = null;
             self.Time = 0;
@@ -53,7 +53,7 @@ namespace ET
         [ObjectSystem]
         public class TimerComponentAwakeSystem: AwakeSystem<TimerComponent>
         {
-            public override void Awake(TimerComponent self)
+            protected override void Awake(TimerComponent self)
             {
                 TimerComponent.Instance = self;
             }
@@ -62,7 +62,7 @@ namespace ET
         [ObjectSystem]
         public class TimerComponentUpdateSystem: UpdateSystem<TimerComponent>
         {
-            public override void Update(TimerComponent self)
+            protected override void Update(TimerComponent self)
             {
                 if (self.TimeId.Count == 0)
                 {
@@ -118,7 +118,7 @@ namespace ET
         [ObjectSystem]
         public class TimerComponentDestroySystem: DestroySystem<TimerComponent>
         {
-            public override void Destroy(TimerComponent self)
+            protected override void Destroy(TimerComponent self)
             {
                 TimerComponent.Instance = null;
             }

+ 4 - 4
Codes/ModelView/Client/Module/Resource/ResourcesComponent.cs

@@ -13,7 +13,7 @@ namespace ET.Client
         [ObjectSystem]
         public class ABInfoAwakeSystem: AwakeSystem<ABInfo, string, AssetBundle>
         {
-            public override void Awake(ABInfo self, string abName, AssetBundle a)
+            protected override void Awake(ABInfo self, string abName, AssetBundle a)
             {
                 self.AssetBundle = a;
                 self.Name = abName;
@@ -25,7 +25,7 @@ namespace ET.Client
         [ObjectSystem]
         public class ABInfoDestroySystem: DestroySystem<ABInfo>
         {
-            public override void Destroy(ABInfo self)
+            protected override void Destroy(ABInfo self)
             {
                 //Log.Debug($"desdroy assetbundle: {self.Name}");
 
@@ -132,7 +132,7 @@ namespace ET.Client
         [ObjectSystem]
         public class ResourcesComponentAwakeSystem: AwakeSystem<ResourcesComponent>
         {
-            public override void Awake(ResourcesComponent self)
+            protected override void Awake(ResourcesComponent self)
             {
                 ResourcesComponent.Instance = self;
 
@@ -147,7 +147,7 @@ namespace ET.Client
         [ObjectSystem]
         public class ResourcesComponentDestroySystem: DestroySystem<ResourcesComponent>
         {
-            public override void Destroy(ResourcesComponent self)
+            protected override void Destroy(ResourcesComponent self)
             {
                 ResourcesComponent.Instance = null;
 

+ 1 - 1
Codes/ModelView/Client/Module/Resource/ResourcesLoaderComponent.cs

@@ -8,7 +8,7 @@ namespace ET.Client
         [ObjectSystem]
             public class ResourcesLoaderComponentDestroySystem: DestroySystem<ResourcesLoaderComponent>
             {
-                public override void Destroy(ResourcesLoaderComponent self)
+                protected override void Destroy(ResourcesLoaderComponent self)
                 {
                     async ETTask UnLoadAsync()
                     {

+ 2 - 2
Codes/ModelView/Client/Module/UI/UI.cs

@@ -9,7 +9,7 @@ namespace ET
         [ObjectSystem]
         public class UIAwakeSystem : AwakeSystem<UI, string, GameObject>
         {
-            public override void Awake(UI self, string name, GameObject gameObject)
+            protected override void Awake(UI self, string name, GameObject gameObject)
             {
                 self.nameChildren.Clear();
                 gameObject.layer = LayerMask.NameToLayer(LayerNames.UI);
@@ -21,7 +21,7 @@ namespace ET
         [ObjectSystem]
         public class UIDestroySystem : DestroySystem<UI>
         {
-            public override void Destroy(UI self)
+            protected override void Destroy(UI self)
             {
                 foreach (UI ui in self.nameChildren.Values)
                 {

+ 1 - 1
Unity/Assets/Scripts/Core/Object/IAddComponentSystem.cs

@@ -29,6 +29,6 @@ namespace ET
 			return typeof(T);
 		}
 
-		public abstract void AddComponent(T self, Entity component);
+		protected abstract void AddComponent(T self, Entity component);
 	}
 }

+ 5 - 5
Unity/Assets/Scripts/Core/Object/IAwakeSystem.cs

@@ -65,7 +65,7 @@ namespace ET
             this.Awake((T)o);
         }
 
-        public abstract void Awake(T self);
+        protected abstract void Awake(T self);
     }
     
     [ObjectSystem]
@@ -86,7 +86,7 @@ namespace ET
             this.Awake((T)o, a);
         }
 
-        public abstract void Awake(T self, A a);
+        protected abstract void Awake(T self, A a);
     }
 
     [ObjectSystem]
@@ -107,7 +107,7 @@ namespace ET
             this.Awake((T)o, a, b);
         }
 
-        public abstract void Awake(T self, A a, B b);
+        protected abstract void Awake(T self, A a, B b);
     }
 
     [ObjectSystem]
@@ -128,7 +128,7 @@ namespace ET
             this.Awake((T)o, a, b, c);
         }
 
-        public abstract void Awake(T self, A a, B b, C c);
+        protected abstract void Awake(T self, A a, B b, C c);
     }
     
     [ObjectSystem]
@@ -149,6 +149,6 @@ namespace ET
             this.Awake((T)o, a, b, c, d);
         }
 
-        public abstract void Awake(T self, A a, B b, C c, D d);
+        protected abstract void Awake(T self, A a, B b, C c, D d);
     }
 }

+ 1 - 1
Unity/Assets/Scripts/Core/Object/IDeserializeSystem.cs

@@ -34,6 +34,6 @@ namespace ET
 			return typeof(T);
 		}
 
-		public abstract void Deserialize(T self);
+		protected abstract void Deserialize(T self);
 	}
 }

+ 1 - 1
Unity/Assets/Scripts/Core/Object/IDestroySystem.cs

@@ -30,6 +30,6 @@ namespace ET
 			return typeof(T);
 		}
 
-		public abstract void Destroy(T self);
+		protected abstract void Destroy(T self);
 	}
 }

+ 1 - 1
Unity/Assets/Scripts/Core/Object/IGetComponentSystem.cs

@@ -33,6 +33,6 @@ namespace ET
 			return typeof(T);
 		}
 
-		public abstract void GetComponent(T self, Entity component);
+		protected abstract void GetComponent(T self, Entity component);
 	}
 }

+ 1 - 1
Unity/Assets/Scripts/Core/Object/ILateUpdateSystem.cs

@@ -29,6 +29,6 @@ namespace ET
 			return typeof(ILateUpdateSystem);
 		}
 
-		public abstract void LateUpdate(T self);
+		protected abstract void LateUpdate(T self);
 	}
 }

+ 1 - 1
Unity/Assets/Scripts/Core/Object/ILoadSystem.cs

@@ -29,6 +29,6 @@ namespace ET
 			return typeof(ILoadSystem);
 		}
 
-		public abstract void Load(T self);
+		protected abstract void Load(T self);
 	}
 }

+ 1 - 1
Unity/Assets/Scripts/Core/Object/IUpdateSystem.cs

@@ -29,6 +29,6 @@ namespace ET
 			return typeof(IUpdateSystem);
 		}
 
-		public abstract void Update(T self);
+		protected abstract void Update(T self);
 	}
 }