Implement faster alternative "FindClosest" specially for DanmakuField
Closed this issue · 1 comments
james7132 commented
Almost all objects require a DanmakuField and a lot cannot function without a reference to one. This results in calls to Util.FindClosest in almost all Awake calls.
Util.FindClosest is slow due to a call to FindObjectsOfType and should have an alternative built into the DanmakuField type itself.