Plugin.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.0-beta"; }
  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. //Console.WriteLine("OnLevelWasLoaded=" + level);
  30. if (level != SongBrowserApplication.MenuIndex) return;
  31. SongBrowserApplication.OnLoad();
  32. }
  33. public void OnLevelWasInitialized(int level)
  34. {
  35. //Console.WriteLine("OnLevelWasInitialized=" + level);
  36. }
  37. public void OnUpdate()
  38. {
  39. }
  40. public void OnFixedUpdate()
  41. {
  42. }
  43. }
  44. }