From ab6683cc33fb6a1c3a02eb9365bf8b38a13a706a Mon Sep 17 00:00:00 2001 From: wryl Date: Wed, 7 Apr 2021 22:45:46 +0800 Subject: [PATCH] Update EntityCreateComponet.cs (#232) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 捉虫 --- Unity/Assets/Model/Core/Object/EntityCreateComponet.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Unity/Assets/Model/Core/Object/EntityCreateComponet.cs b/Unity/Assets/Model/Core/Object/EntityCreateComponet.cs index 3a5140f9..d5e9d519 100644 --- a/Unity/Assets/Model/Core/Object/EntityCreateComponet.cs +++ b/Unity/Assets/Model/Core/Object/EntityCreateComponet.cs @@ -25,8 +25,8 @@ namespace ET { Entity component = Create(type, isFromPool); - component.Id = parent.Id; - component.ComponentParent = parent; + component.Id = this.Id; + component.ComponentParent = this; EventSystem.Instance.Awake(component); return component; @@ -80,4 +80,4 @@ namespace ET return (T)component; } } -} \ No newline at end of file +} -- GitLab