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;
Vector3 pos = UnityCameraUtils.ScreenToWorldPoint(unity::Input.mousePosition);
handler.Feed(0, 0, new InputVector(time, pos));
}