quantum-space-buddies/QSB/PreserveTimeScale.cs
Ricardo Lopes a1177515b3
Preserve time scale (#18)
* Create QSBBehaviour

* Preserve timescale

* Cleanup
2020-02-18 21:32:26 +01:00

16 lines
233 B
C#

using UnityEngine;
namespace QSB
{
class PreserveTimeScale : QSBBehaviour
{
void Update()
{
if (isPlayerAwake)
{
Time.timeScale = 1;
}
}
}
}