TheStable/Assets/Prefabs/Chair/SeatedStationGraph.cs
Jamie Greunbaum c0c2f324eb - Stool can now be sat on.
- Updated spawn point model to something more sightly.
- Lightmap caches removed from repository.
2024-12-04 17:10:50 -05:00

31 lines
713 B
C#

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
using VRC.Udon.Wrapper.Modules;
public class SeatedStationGraph : UdonSharpBehaviour
{
public override void Interact()
{
Networking.LocalPlayer.UseAttachedStation();
}
public override void OnStationEntered(VRCPlayerApi player)
{
RequestSerialization();
Debug.Log(string.Format("{0} Entered", player.displayName));
base.OnStationEntered(player);
}
public override void OnStationExited(VRCPlayerApi player)
{
RequestSerialization();
Debug.Log(string.Format("{0} Exited", player.displayName));
base.OnStationExited(player);
}
}