- 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.
26 lines
568 B
C#
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();
|
|
}
|
|
}
|