mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
smol tweak to reenable behavior
Reenabling autodetection should reset the timer so you don't immediatly transition into a new state.
This commit is contained in:
parent
dcc4320ffa
commit
329b3bcbdf
1 changed files with 6 additions and 0 deletions
|
@ -151,6 +151,12 @@ public class BlackoutController : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
curTime = Time.time;
|
||||
lastAwakeTime = curTime;
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
ChangeBlackoutState(BlackoutState.Awake);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue