Plugin.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.2.3"; }
  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. }
  33. }
  34. public void OnLevelWasInitialized(int level)
  35. {
  36. }
  37. public void OnUpdate()
  38. {
  39. }
  40. public void OnFixedUpdate()
  41. {
  42. }
  43. }
  44. }