Make Unity timestamps realtime critical. (2)

This commit is contained in:
2022-11-14 13:49:29 +08:00
parent 318a6705be
commit 7ce73186ae
3 changed files with 5 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ namespace Cryville.Common.Unity.Input {
handler = h;
}
void Update() {
double time = Time.timeAsDouble;
double time = Time.realtimeSinceStartupAsDouble;
for (int i = 0; i < unity::Input.touchCount; i++) {
var t = unity::Input.GetTouch(i);
Vector2 pos = UnityCameraUtils.ScreenToWorldPoint(t.position);