Make Unity timestamps realtime critical. (2)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user