Kaynağa Gözat

Entity设置IScene,漏了一处赋值

tanghai 1 yıl önce
ebeveyn
işleme
fe0f7896ad
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      Unity/Assets/Scripts/Core/Entity/Entity.cs

+ 2 - 0
Unity/Assets/Scripts/Core/Entity/Entity.cs

@@ -329,6 +329,8 @@ namespace ET
                     return;
                 }
 
+                this.iScene = value;
+                
                 if (this.InstanceId == 0)
                 {
                     this.InstanceId = IdGenerater.Instance.GenerateInstanceId();