- Added a video player with horse songs preloaded. - Adjusted post-processing to be less harsh outdoors, and more visible indoors.
26 lines
584 B
C#
26 lines
584 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
|
|
namespace UdonSharp.Video.Internal
|
|
{
|
|
[AddComponentMenu("Udon Sharp/Video/Internal/Object Toggle")]
|
|
public class ObjectToggle : UdonSharpBehaviour
|
|
{
|
|
#pragma warning disable CS0649
|
|
[SerializeField]
|
|
private GameObject[] toggleObjects;
|
|
#pragma warning restore CS0649
|
|
|
|
public void OnToggle()
|
|
{
|
|
foreach (GameObject toggleObject in toggleObjects)
|
|
{
|
|
toggleObject.SetActive(!toggleObject.activeSelf);
|
|
}
|
|
}
|
|
}
|
|
}
|