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

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