finish mining task

This commit is contained in:
NguyenVanDat
2026-01-09 11:01:03 +07:00
parent 570455afce
commit 88213f7649
2 changed files with 6 additions and 7 deletions
@@ -1,5 +1,6 @@
using UnityEngine;
using System;
using BrewMonster.UI;
using CSNetwork;
namespace BrewMonster.Network
@@ -75,7 +76,9 @@ namespace BrewMonster.Network
public static float GetRealTickTime()
{
// return m_dwRealTickTime;
return Time.realtimeSinceStartup;
// return Time.realtimeSinceStartup;
// 0.018f is value to make mining process run fit with player animation. if have any issue => discussing with Mr. Drimdar
return (Time.unscaledDeltaTime - 0.018f) * 1000f;//-0.001f
}
}
}
@@ -8,7 +8,7 @@ namespace BrewMonster.UI
public const int AUIPROGRESS_MAX = 100;
private DlgWinPrgs2 _dlgWinPrgs;
private CECHostPlayer _pHost;
public override bool Render()
{
// if( m_szName == "Win_Hpmpxp" )
@@ -109,11 +109,7 @@ namespace BrewMonster.UI
_dlgWinPrgs.SetProgressAndText(percent*1.0f/100.0f,$"{percent}%");
// pLabel.SetText(percent);
// pProgress.SetProgress(AUIPROGRESS_MAX * nCur / nMax);
if (percent >= 100)
{
_dlgWinPrgs.SetActiveProgress(false);
}
else
if (percent < 100)
{
_dlgWinPrgs.SetActiveProgress(true);
}