fix: update move when done load terrain and lit.

This commit is contained in:
Tungdv
2026-05-07 17:58:42 +07:00
parent eb68615696
commit 5581c616c1
5 changed files with 61 additions and 10 deletions
+2
View File
@@ -230,6 +230,8 @@ namespace BrewMonster
m_MoveCtrl.SetHostLastPos(EC_Utility.ToA3DVECTOR3(vPos));
m_MoveCtrl.SetLastSevPos(EC_Utility.ToA3DVECTOR3(vPos));
isLitToReady = false;
isTerrainToReady = false;
// Update camera if available
// 如果可用则更新相机
// UpdateFollowCamera(false, 10); // Uncomment if UpdateFollowCamera method exists
+3 -1
View File
@@ -169,6 +169,8 @@ namespace BrewMonster
Ray ray;
RaycastHit[] hits = new RaycastHit[5];
bool isDataAwaitToReady = false;
public bool isTerrainToReady = false;
public bool isLitToReady = false;
private BaseVfxObject m_pSelectedGFX;
private BaseVfxObject m_pHoverGFX;
@@ -395,7 +397,7 @@ namespace BrewMonster
{
base.Update();
if (!isDataAwaitToReady)
if (!isDataAwaitToReady || !isTerrainToReady || !isLitToReady)
{
return;
}