quantum-space-buddies/QSB/PreserveTimeScale.cs
AmazingAlek d7c0c06698
Alek/decoupling (#23)
* refactoring
2020-02-21 23:36:07 +01:00

16 lines
248 B
C#

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