Created
July 24, 2019 14:35
-
-
Save lindsaygcox/90a6356edcbb163c5b100dd88d1d638a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private BoxCollider[] _allColliders; | |
private void Start() | |
{ | |
_allColliders = FindObjectsOfType<BoxCollider>(); | |
} | |
private void OnTriggerEnter(Collider other) | |
{ | |
DoAThing(_allColliders); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment