From 4206e80fb0f33f28c714f41a31b268d59e4735d9 Mon Sep 17 00:00:00 2001 From: Tristan Bellman-Greenwood Date: Sat, 22 Aug 2020 12:50:44 -0400 Subject: [PATCH] time offset is now reset when DOTS is reset --- Runtime/Scripts/Utils/DotsUtil.cs | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/Scripts/Utils/DotsUtil.cs b/Runtime/Scripts/Utils/DotsUtil.cs index 5b8187c..a6cf4d0 100644 --- a/Runtime/Scripts/Utils/DotsUtil.cs +++ b/Runtime/Scripts/Utils/DotsUtil.cs @@ -17,6 +17,8 @@ public static void Reset() { ReferenceTypeUtil.Clear(); ManagedMonoBehaviour.DestroyAll(); + + TimeUtil.TimeOffset = 0; } } } diff --git a/package.json b/package.json index 9fe6606..f7ec520 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.10101software.dots.hybridsimulation", "description": "A framework for using FixedUpdate in a simulation world which is linked to a GameObject-based presentation layer.", - "version": "0.6.3", + "version": "0.6.4", "unity": "2020.1", "displayName": "DOTS Hybrid Simulation Worlds", "dependencies": {