瀏覽代碼

修改进游戏扫镜头时看不到塔建筑的问题

大爷 1 年之前
父節點
當前提交
effebf416b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Unity/Assets/Scripts/Codes/HotfixView/Client/Scene/SceneChangeStart_AddComponent.cs

+ 3 - 1
Unity/Assets/Scripts/Codes/HotfixView/Client/Scene/SceneChangeStart_AddComponent.cs

@@ -27,12 +27,14 @@ namespace ET.Client
             // 通知等待场景切换的协程
             EventSystem.Instance.Publish<EventType.SceneLoadFinish>();
 
+            //需要先设置战斗ready,不然后塔单位不会生成,扫镜头时看不到塔模型
+            scene.GetComponent<ObjectWait>().Notify(new Wait_SceneChangeFinish());
+
             Vector3 StartPos = new(30, 15, 10);
             Vector3 EndPos = new(230, 15, 10);
             CameraMgr.DragMe(StartPos, EndPos, 8, () =>
             {
                 Log.Debug("camera scroll end");
-                scene.GetComponent<ObjectWait>().Notify(new Wait_SceneChangeFinish());
             });
         }
     }