Plugin.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using UnityEngine.SceneManagement;
  2. using IllusionPlugin;
  3. namespace SongBrowserPlugin
  4. {
  5. public class Plugin : IPlugin
  6. {
  7. public string Name
  8. {
  9. get { return "Song Browser"; }
  10. }
  11. public string Version
  12. {
  13. get { return "v2.3.1"; }
  14. }
  15. public void OnApplicationStart()
  16. {
  17. }
  18. public void OnApplicationQuit()
  19. {
  20. }
  21. private void SceneManagerOnActiveSceneChanged(Scene arg0, Scene scene)
  22. {
  23. }
  24. private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1)
  25. {
  26. }
  27. public void OnLevelWasLoaded(int level)
  28. {
  29. if (SceneManager.GetSceneByBuildIndex(level).name == "Menu")
  30. {
  31. SongBrowserApplication.OnLoad();
  32. Downloader.OnLoad();
  33. }
  34. }
  35. public void OnLevelWasInitialized(int level)
  36. {
  37. }
  38. public void OnUpdate()
  39. {
  40. }
  41. public void OnFixedUpdate()
  42. {
  43. }
  44. }
  45. }