Esempio n. 1
0
        public void OnApplicationStart()
        {
            _sceneEvents = new GameObject("menu-signal").AddComponent <SceneEvents>();
            _sceneEvents.MenuSceneEnabled += OnMenuSceneEnabled;
            SceneManager.sceneLoaded      += SceneManager_sceneLoaded;

            harmony = HarmonyInstance.Create("com.xyoncio.BeatSaber.SongLoaderPlugin");
            harmony.PatchAll(System.Reflection.Assembly.GetExecutingAssembly());
        }
Esempio n. 2
0
 public void OnApplicationStart()
 {
     _sceneEvents = new GameObject("menu-signal").AddComponent <SceneEvents>();
     _sceneEvents.MenuSceneEnabled += OnMenuSceneEnabled;
     harmony = HarmonyInstance.Create("com.xyoncio.BeatSaber.SongLoaderPlugin");
     harmony.PatchAll(System.Reflection.Assembly.GetExecutingAssembly());
     SongLoader.GetIcons();
     SongLoader.RegisterCustomCharacteristic(SongLoader.MissingCharIcon, "Missing Characteristic", "Missing Characteristic", "MissingCharacteristic", "MissingCharacteristic");
     SongLoader.RegisterCustomCharacteristic(SongLoader.LightshowIcon, "Lightshow", "Lightshow", "Lightshow", "Lightshow");
     SongLoader.RegisterCustomCharacteristic(SongLoader.ExtraDiffsIcon, "Lawless", "Lawless - These difficulties don't follow conventional standards, and should not necessarily be expected to reflect their given names.", "Lawless", "Lawless");
 }
 private void Awake()
 {
     Instance = this;
     SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged;
     DontDestroyOnLoad(gameObject);
 }