Andy0903 / Dungeon-Clearer

Dungeon Clearer
2 stars 0 forks source link

Replace heavy searches with [SerializeField], use findTag instead of type/name etc everywhere for speed. #39

Closed Andy0903 closed 6 years ago

Andy0903 commented 6 years ago

Serialize through inspector is fastest, but relies heavily on remembering to assign etc.. after that Tag seems to be fastest(?)

https://answers.unity.com/questions/1170097/which-is-more-efficient-gameobjectfind-or-public-g.html