mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
a1177515b3
* Create QSBBehaviour * Preserve timescale * Cleanup
16 lines
233 B
C#
16 lines
233 B
C#
using UnityEngine;
|
|
|
|
namespace QSB
|
|
{
|
|
class PreserveTimeScale : QSBBehaviour
|
|
{
|
|
void Update()
|
|
{
|
|
if (isPlayerAwake)
|
|
{
|
|
Time.timeScale = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|