Example #1
0
        public static void Create()
        {
            if (Instance != null)
            {
                return;
            }
            var obj = new GameObject("TrickSaberPlugin");

            Instance = obj.AddComponent <TrickSaberPlugin>();
            DontDestroyOnLoad(obj);
        }
Example #2
0
 public void OnStart()
 {
     TrickSaberPlugin.Create();
     SettingsUI.CreateMenu();
     BSEvents.gameSceneLoaded += GameplayManager.OnGameSceneLoaded;
 }