I have created a framework which downloads the entire game via assetBundles and assigns the scripts on objects at runtime. The scripts are also placed in a dll which is downloaded via an assetbundle. I will explain my problem through an example :
I have a gameObject say 'One' which is responsible for downloading DllBundle1 containing game managers - say 'A' and 'B'. A and B scripts are
assigned to a gameObject which is persistant throughout the game. A is responsible for downloading the game assets and their respective scripts(DllBundle2) say 'ScriptOne'. How do I access the variables/ functions present in A from ScriptOne as they are in different Dlls and assigned dynamically on the gameObjects?
↧