I am using Unity with c#.
I have two objects and one needs to call a function from the other which is a Singleton. For this I have two solutions. But what's the best thing to do :
- Call for :
- Store my Singleton object in my calling object and call it like this :
What is the best thing to do in term of performance and optimizations.
Thanks a lot.