public static void Create() { if (Instance != null) { return; } var obj = new GameObject("TrickSaberPlugin"); Instance = obj.AddComponent <TrickSaberPlugin>(); DontDestroyOnLoad(obj); }
public void OnStart() { TrickSaberPlugin.Create(); SettingsUI.CreateMenu(); BSEvents.gameSceneLoaded += GameplayManager.OnGameSceneLoaded; }