Explorar el Código

Entity设置IScene,漏了一处赋值

tanghai hace 2 años
padre
commit
fe0f7896ad
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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();