zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Hotfix/Scene/ZoneSceneFlagComponentSyste...

20 lines
585 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
namespace ET
{
[ObjectSystem]
public class ZoneSceneFlagComponentDestroySystem : DestroySystem<ZoneSceneFlagComponent>
{
public override void Destroy(ZoneSceneFlagComponent self)
{
ZoneSceneManagerComponent.Instance.Remove(self.DomainZone());
}
}
[ObjectSystem]
public class ZoneSceneFlagComponentAwakeSystem : AwakeSystem<ZoneSceneFlagComponent>
{
public override void Awake(ZoneSceneFlagComponent self)
{
ZoneSceneManagerComponent.Instance.Add(self.GetParent<Scene>());
}
}
}