- Moved video screen into its own separate movie tent. - Adjusted stable post-processing volume. - Chickens are now at full volume. - Added button to toggle chickens off and on.
29 lines
675 B
C#
29 lines
675 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
|
|
namespace Pyralix.SkeeBall
|
|
{
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
|
|
public class BallBlockerReset : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private SkeeballMain SkeeballMain;
|
|
|
|
private int _ballCount;
|
|
|
|
private void OnTriggerExit(Collider other)
|
|
{
|
|
if(Utilities.IsValid(other) && other != null && other.GetComponent<Ball>())
|
|
{
|
|
_ballCount++;
|
|
|
|
if (Networking.IsOwner(gameObject))
|
|
{
|
|
SkeeballMain._IncrementBlockCount();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|