I have following code in unity.
void Update()
{
if (IsPlaying)
{
if (!Waiting)
{
UpdateTime();
}
}
}
public void UpdateTime()
{
if (!StopUpdateTime)
{
CurTime += Time.deltaTime * FastPlayRatio (= 1);
MyUI.UpdateCurTimeUI(CurTime);
}
}
Strange thing is, in unity editor, there is no problem and time UI updated well when play.
but after make Steam PC standlone build, play through Steam, then this time UI does not changed.
Why this happen? How to debug visual studio like doing F9 key and set stop point when unity editor while playing Steam build?
I tried to debug this, attach visual studio when playing Steam build, but F9 break point changed to red empty circle and says [Can’t find the location].