public static void Load() { //RoR2.RoR2Application.isModded = true; while (gameObject = GameObject.Find("Umbra Menu")) { GameObject.Destroy(gameObject); } gameObject = new GameObject("Umbra Menu"); Object.DontDestroyOnLoad(gameObject); gameObject.SetActive(false); var types = Assembly.GetExecutingAssembly().GetTypes().ToList().Where(t => t.BaseType == typeof(MonoBehaviour) && !t.IsNested); foreach (var type in types) { var component = (MonoBehaviour)gameObject.AddComponent(type); component.enabled = false; } Utility.LoadAssembly(); Updates.CheckForUpdate(); gameObject.GetComponent <Main>().enabled = true; gameObject.SetActive(true); }