- Home /
Question by
byerdelen · Jan 24, 2015 at 02:37 PM ·
instantiatesingletononlevelwasloaded
Instantiating object from nothing
Hi,
I am seeing that in some plugins, it creates it's system(gameobject) without calling anything when the scene starts(Prime31,Chartboost etc) I have a Singleton(indestructible) and I have more than 100 scenes. I want to instantiate that singleton in any scene when the scene loads but I do not want to add any dynamic code to my scene codes otherwise I can just add that object to each of my scenes. Obviously it is called from a static code but anybody knows how it is done?
Thanks
Comment
Your answer
