Преглед изворни кода

Entity设置IScene,漏了一处赋值

tanghai пре 1 година
родитељ
комит
fe0f7896ad
1 измењених фајлова са 2 додато и 0 уклоњено
  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;
                     return;
                 }
                 }
 
 
+                this.iScene = value;
+                
                 if (this.InstanceId == 0)
                 if (this.InstanceId == 0)
                 {
                 {
                     this.InstanceId = IdGenerater.Instance.GenerateInstanceId();
                     this.InstanceId = IdGenerater.Instance.GenerateInstanceId();