Fixed global portal trigger

This commit is contained in:
raccoon
2024-12-16 07:04:47 +05:00
parent 3373787b90
commit fbb36923b6

View File

@@ -26,6 +26,9 @@ public class Areaportal : UdonSharpBehaviour
public override void OnPlayerTriggerEnter(VRCPlayerApi player)
{
if (!(player.IsValid() && player.isLocal))
return;
this.portal.open = true;
foreach(GameObject imposter in this.imposters)
@@ -36,6 +39,9 @@ public class Areaportal : UdonSharpBehaviour
public override void OnPlayerTriggerExit(VRCPlayerApi player)
{
if (!(player.IsValid() && player.isLocal))
return;
this.portal.open = false;
foreach(GameObject imposter in this.imposters)