|
@@ -941,6 +941,8 @@ namespace ET
|
|
|
{
|
|
{
|
|
|
EntitySystemSingleton.Instance.Serialize(this);
|
|
EntitySystemSingleton.Instance.Serialize(this);
|
|
|
|
|
|
|
|
|
|
+ if (!this.IsCreated) return;
|
|
|
|
|
+
|
|
|
this.componentsDB?.Clear();
|
|
this.componentsDB?.Clear();
|
|
|
if (this.components != null && this.components.Count != 0)
|
|
if (this.components != null && this.components.Count != 0)
|
|
|
{
|
|
{
|