TH1/Unity/Assets/Scripts/HotfixView/Client/Demo/Unit/GameObjectComponentSystem.cs
2025-07-17 18:26:28 +08:00

20 lines
446 B
C#

using System;
namespace ET.Client
{
[EntitySystemOf(typeof(GameObjectComponent))]
public static partial class GameObjectComponentSystem
{
[EntitySystem]
private static void Destroy(this GameObjectComponent self)
{
UnityEngine.Object.Destroy(self.GameObject);
}
[EntitySystem]
private static void Awake(this GameObjectComponent self)
{
}
}
}