mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
d7c0c06698
* refactoring
16 lines
248 B
C#
16 lines
248 B
C#
using UnityEngine;
|
|
|
|
namespace QSB
|
|
{
|
|
public class PreserveTimeScale : QSBBehaviour
|
|
{
|
|
private void Update()
|
|
{
|
|
if (IsPlayerAwake)
|
|
{
|
|
Time.timeScale = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|