19 lines
426 B
C#
19 lines
426 B
C#
|
|
using UdonSharp;
|
|
using VRC.SDKBase;
|
|
|
|
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
|
|
public class LightningStrikeStation : UdonSharpBehaviour
|
|
{
|
|
public override void Interact()
|
|
{
|
|
GetComponent<VRCStation>().UseStation(Networking.LocalPlayer);
|
|
SendCustomEventDelayedSeconds(nameof(RemoveFromStation), 2.0f);
|
|
}
|
|
public void RemoveFromStation()
|
|
{
|
|
GetComponent<VRCStation>().ExitStation(Networking.LocalPlayer);
|
|
}
|
|
}
|