12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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.0-RC3"; }
- }
- 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();
- }
- }
- public void OnLevelWasInitialized(int level)
- {
- }
- public void OnUpdate()
- {
- }
- public void OnFixedUpdate()
- {
- }
- }
- }
|