CSL.RoadExtensions.Install.AssetsInstaller.Install C# (CSharp) Method

Install() protected method

protected Install ( ) : void
return void
        protected override void Install()
        {
            if (Done) // Only one Assets installation throughout the application
            {
                return;
            }

            foreach (var action in AssetManager.instance.CreateLoadingSequence(Mod.GetPath()))
            {
                var localAction = action;

                Loading.QueueAction(() =>
                {
                    try
                    {
                        localAction();
                    }
                    catch (Exception ex)
                    {
                        Debug.Log("REx: Crashed-AssetsInstaller");
                        Debug.Log("REx: " + ex.Message);
                        Debug.Log("REx: " + ex.ToString());
                    }
                });
            }

            Done = true;
        }
    }