public ResourceBundleManager(bool isEditor) { Assert.IsNull(SharedInstance); SharedInstance = this; #if UNITY_EDITOR this.isEditor = isEditor; #else this.isEditor = false; #endif }
void Start() { m_bundleManager = new ResourceBundleManager(isEditor); new TextureManager(); new MaterialManager(); new PrefabManager(); var uiRootObj = GameObject.Find("UIRoot"); DontDestroyOnLoad(uiRootObj); m_uiManager = new UIManager(); m_uiManager.SetUIRootObj(uiRootObj); var audioSourceObj = GameObject.Find("SoundSource").GetComponent <AudioSource>(); m_soundManager = new SoundManager(); m_soundManager.SetSoundSource(audioSourceObj); m_procedureManager = InitialProcedureManager(); m_bundleManager.LoadResourceBundleConfig(bundleConfigName) .Subscribe(_ => { couldUpdate = true; m_procedureManager.Start(); }); }