Пример #1
0
    private void init()
    {
        gameObject.AddComponent <AssetBundleLoadManager>();
        gameObject.AddComponent <AssetLoadManager>();

#if DEVELOPMENT_BUILD
        gameObject.AddComponent <QY.Debug.DebugTools>();
#elif !UNITY_EDITOR
        Debug.unityLogger.logEnabled = false;
#endif
        GameMainManager.instance.mono = this;

        UpdateVersion updateVersion = new UpdateVersion();
        updateVersion.StartUpdate(() => {
            UpdateAssetsComplate();
        }, (url) => {
            EventDispatcher.instance.DispatchEvent(new UpdateAppEvent(url));
        });
    }