finish mining task
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user