CarmenSandiego/Assets/UdonSharp/Interacts/PickupInteractCallback.cs
Jamie Greunbaum 2fa20670ac - Added a phone box around the phone in round 2.
- Added a callback class to allow interactions to send signals to non-pickups.
- Round 2 phone now syncs with VRCObjectSync, like many simple pick-ups now do.
- Doors can now choose whether they auto-close.
- GameManagers now enable and disable live lights as necessary.
- More transparent textures now have "Alpha is transparency" enabled.
- Podium prefab shifted slightly in its default position. This changes nothing.
2026-05-15 02:10:09 -04:00

26 lines
568 B
C#

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
public class PickupInteractCallback : UdonSharpBehaviour
{
[SerializeField] private UdonSharpBehaviour _CallbackObject;
[SerializeField] private string _InteractCallbackFunction;
public override void Interact()
{
Debug.Log("[PickupInteractCallback] Interaction!!!");
if (_InteractCallbackFunction != "" && Utilities.IsValid(_CallbackObject))
{
_CallbackObject.SendCustomEvent(_InteractCallbackFunction);
}
base.Interact();
}
}