mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 15:29:22 +00:00
[Blackout] Cleanup
This commit is contained in:
parent
5b40a2a185
commit
c9d77dc034
3 changed files with 9 additions and 10 deletions
|
@ -121,7 +121,7 @@ public class BlackoutController : MonoBehaviour
|
|||
}
|
||||
|
||||
// Initialize the BlackoutInstance object.
|
||||
void Start()
|
||||
private void Start()
|
||||
{
|
||||
Instance = this;
|
||||
|
||||
|
@ -146,7 +146,7 @@ public class BlackoutController : MonoBehaviour
|
|||
}
|
||||
|
||||
//Automatic State Change
|
||||
void Update()
|
||||
private void Update()
|
||||
{
|
||||
//get the current position of the player's head
|
||||
Vector3 curHeadPos = activeModeCam.transform.position;
|
||||
|
@ -191,13 +191,13 @@ public class BlackoutController : MonoBehaviour
|
|||
ChangeBlackoutState(BlackoutState.Awake);
|
||||
}
|
||||
|
||||
void OnPreRender(Camera cam)
|
||||
private void OnPreRender(Camera cam)
|
||||
{
|
||||
if (cam == activeModeCam) return;
|
||||
blackoutAnimator.transform.localScale = Vector3.zero;
|
||||
}
|
||||
|
||||
void OnPostRender(Camera cam)
|
||||
private void OnPostRender(Camera cam)
|
||||
{
|
||||
blackoutAnimator.transform.localScale = Vector3.one;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue