- Countries in round 3 are now randomised on load instead of on initialisation. - View tablet now properly resets position on spawn and despawn.
18 lines
340 B
C#
18 lines
340 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
|
|
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
|
|
public class CustomEventInteraction : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private UdonSharpBehaviour _Target;
|
|
[SerializeField] private string _EventName;
|
|
|
|
|
|
public override void Interact()
|
|
{
|
|
_Target.SendCustomEvent(_EventName);
|
|
}
|
|
}
|