Plugin.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using UnityEngine;
  6. using UnityEngine.SceneManagement;
  7. using VRUI;
  8. using IllusionPlugin;
  9. using TMPro;
  10. using UnityEngine.UI;
  11. using System.Collections;
  12. namespace SongBrowserPlugin
  13. {
  14. public class Plugin : IPlugin
  15. {
  16. public string Name
  17. {
  18. get { return "Song Browser"; }
  19. }
  20. public string Version
  21. {
  22. get { return "v2.0"; }
  23. }
  24. public void OnApplicationStart()
  25. {
  26. }
  27. public void OnApplicationQuit()
  28. {
  29. }
  30. private void SceneManagerOnActiveSceneChanged(Scene arg0, Scene scene)
  31. {
  32. }
  33. private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1)
  34. {
  35. }
  36. public void OnLevelWasLoaded(int level)
  37. {
  38. //Console.WriteLine("OnLevelWasLoaded=" + level);
  39. //if (level != SongBrowserMasterViewController.MenuIndex) return;
  40. //SongBrowserMasterViewController.OnLoad();
  41. if (level != SongBrowserMasterViewController.MenuIndex) return;
  42. SongBrowserApplication.OnLoad();
  43. }
  44. public void OnLevelWasInitialized(int level)
  45. {
  46. //Console.WriteLine("OnLevelWasInitialized=" + level);
  47. }
  48. public void OnUpdate()
  49. {
  50. }
  51. public void OnFixedUpdate()
  52. {
  53. }
  54. }
  55. }