james7132 / DanmakU

An open source Danmaku development kit for Unity3D.
https://danmaku.jamessliu.com/
MIT License
238 stars 50 forks source link

Implement faster alternative "FindClosest" specially for DanmakuField #8

Closed james7132 closed 9 years ago

james7132 commented 9 years ago

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.

james7132 commented 9 years ago

Implemented as of bccda337