|
@@ -1,4 +1,5 @@
|
|
using Cysharp.Threading.Tasks;
|
|
using Cysharp.Threading.Tasks;
|
|
|
|
+using UnityEngine;
|
|
|
|
|
|
namespace ET.Client
|
|
namespace ET.Client
|
|
{
|
|
{
|
|
@@ -21,10 +22,18 @@ namespace ET.Client
|
|
UIHelper.SetVisible("Loading", false);
|
|
UIHelper.SetVisible("Loading", false);
|
|
|
|
|
|
await GameObjectPool.Instance.CacheSceneObject(mapInfo.Id);
|
|
await GameObjectPool.Instance.CacheSceneObject(mapInfo.Id);
|
|
|
|
+ Log.Debug($"cache scene object end.");
|
|
|
|
|
|
// 通知等待场景切换的协程
|
|
// 通知等待场景切换的协程
|
|
EventSystem.Instance.Publish<EventType.SceneLoadFinish>();
|
|
EventSystem.Instance.Publish<EventType.SceneLoadFinish>();
|
|
- scene.GetComponent<ObjectWait>().Notify(new Wait_SceneChangeFinish());
|
|
|
|
|
|
+
|
|
|
|
+ Vector3 StartPos = new(30, 30, 0);
|
|
|
|
+ Vector3 EndPos = new(230, 30, 0);
|
|
|
|
+ CameraMgr.DragCamera(StartPos, EndPos, 7, () =>
|
|
|
|
+ {
|
|
|
|
+ Log.Debug("camera scroll end");
|
|
|
|
+ scene.GetComponent<ObjectWait>().Notify(new Wait_SceneChangeFinish());
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|