1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using UnityEngine.SceneManagement;
- using IllusionPlugin;
- namespace SongBrowserPlugin
- {
- public class Plugin : IPlugin
- {
- public string Name
- {
- get { return "Song Browser"; }
- }
- public string Version
- {
- get { return "v2.3.1"; }
- }
- public void OnApplicationStart()
- {
- }
- public void OnApplicationQuit()
- {
- }
- private void SceneManagerOnActiveSceneChanged(Scene arg0, Scene scene)
- {
-
- }
- private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1)
- {
- }
- public void OnLevelWasLoaded(int level)
- {
- if (SceneManager.GetSceneByBuildIndex(level).name == "Menu")
- {
- SongBrowserApplication.OnLoad();
- Downloader.OnLoad();
- }
- }
- public void OnLevelWasInitialized(int level)
- {
- }
- public void OnUpdate()
- {
- }
- public void OnFixedUpdate()
- {
- }
- }
- }
|