modules linked and movement broken

This commit is contained in:
2022-11-12 12:18:08 +01:00
parent 2b7984860c
commit 4ee6cfffed
7 changed files with 297 additions and 204 deletions

View File

@@ -13,14 +13,10 @@ public class fps : MonoBehaviour
// Update is called once per frame
void Update()
{
/*int current = (int)(1f / Time.unscaledDeltaTime);
fpsText.text = "Fps: " + current.ToString();*/
if (Time.unscaledTime > _timer) {
int fps = (int)(1f / Time.unscaledDeltaTime);
fpsText.text = "FPS: " + fps;
_timer = Time.unscaledTime + _hudRefreshRate;
}
}
}