- Updated spawn point model to something more sightly. - Lightmap caches removed from repository.
31 lines
713 B
C#
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);
|
|
}
|
|
}
|