Skip to content

Instantly share code, notes, and snippets.

@AG-Dan
Created November 21, 2020 12:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AG-Dan/38efeaf6c5bde54dd23099b125bbe799 to your computer and use it in GitHub Desktop.
Save AG-Dan/38efeaf6c5bde54dd23099b125bbe799 to your computer and use it in GitHub Desktop.
using DunGen;
using UnityEngine;
public class InvertDoorwaySockets : MonoBehaviour
{
private void Awake()
{
DoorwaySocket.CustomSocketConnectionDelegate += CanSocketsConnect;
}
private void OnDestroy()
{
DoorwaySocket.CustomSocketConnectionDelegate -= CanSocketsConnect;
}
private bool CanSocketsConnect(DoorwaySocket a, DoorwaySocket b)
{
return a != b;
}
}
@LoneDev6
Copy link

Thanks a lot for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment