-
Welcome to the Unity forum
-
You might want to profile if Camera.main actually is a bottleneck for you. It got way faster (like 20.000 times faster) with Unity 2020: Unity Blog
-
For future questions, please use code tags when posting code snippets The likelyhood of getting replies also increases by about 20.000% if you use them
-
Understanding the concept of “closures” might help you to reason about your question:
c# - Deep diving into the implementation of closures - Stack Overflow