Browse Source

added reset

ncannasse 8 năm trước cách đây
mục cha
commit
00832fd14c
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      hxd/Timer.hx

+ 5 - 0
hxd/Timer.hx

@@ -31,4 +31,9 @@ class Timer {
 		oldTime = haxe.Timer.stamp();
 	}
 
+	public static function reset() {
+		oldTime = haxe.Timer.stamp();
+		calc_tmod = 1.;
+	}
+
 }