- 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.
24 lines
679 B
C#
24 lines
679 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
|
|
namespace Pyralix.SkeeBall
|
|
{
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
|
|
public class ResetButton : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private SkeeballMain SkeeballMain;
|
|
[SerializeField] private AudioSource audioSource;
|
|
[SerializeField] private AudioClip audioClip;
|
|
[SerializeField] private GameObject PowerButtonLight;
|
|
|
|
public override void Interact()
|
|
{
|
|
SkeeballMain._Reset(Networking.LocalPlayer);
|
|
PowerButtonLight.SetActive(false);
|
|
audioSource.PlayOneShot(audioClip, SkeeballMain._AudioVolume);
|
|
}
|
|
}
|
|
}
|