- Improved camera switcher enable/disable code.
- Added new round 1 switchers, and fixed overlap issues with the existing ones. - Improved camera switch buttons on the host panel. - Potato Mode button on the camera host panel now toggles properly. - Potato Mode button renamed to the more appropriate Performance button. - Glass shatter window effect now works from both directions. - Round 1 window looks much prettier. - Added the ability to scroll through overflowing text on the host card. - Improved scrolling on the credits panel.
This commit is contained in:
@@ -14,15 +14,9 @@ public class GlassShatter : UdonSharpBehaviour
|
||||
private bool _Prepared = false;
|
||||
|
||||
|
||||
public void Initialise()
|
||||
{
|
||||
Shattered = false;
|
||||
}
|
||||
|
||||
|
||||
public void PrepareEnter()
|
||||
{
|
||||
if (!_Shattered)
|
||||
if (!Shattered)
|
||||
{
|
||||
_Prepared = true;
|
||||
}
|
||||
@@ -34,7 +28,7 @@ public class GlassShatter : UdonSharpBehaviour
|
||||
|
||||
public void ShatterEnter()
|
||||
{
|
||||
if (_Prepared && !_Shattered)
|
||||
if (_Prepared && !Shattered)
|
||||
{
|
||||
Shattered = true;
|
||||
_Shatter_Synced();
|
||||
@@ -42,10 +36,18 @@ public class GlassShatter : UdonSharpBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void ShatterExit()
|
||||
{
|
||||
Shattered = false;
|
||||
}
|
||||
|
||||
|
||||
private void _Shatter_Synced()
|
||||
{
|
||||
_AudioManager.PlaySFX(SFXEventType.GlassShatter);
|
||||
if (Shattered)
|
||||
{
|
||||
_AudioManager.PlaySFX(SFXEventType.GlassShatter);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user