Skip to content

Commit 832e8bc

Browse files
committed
Removed some debugging code
1 parent 1eef369 commit 832e8bc

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

Custom Weapons/CustomWeaponData.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ public CustomWeaponData(string filename)
2929
try
3030
{
3131
AssetBundle = AssetBundle.LoadFromFile(filename);
32-
Object.DontDestroyOnLoad(AssetBundle);
3332
Weapon = AssetBundle.LoadAsset<GameObject>("_CustomWeapon");
3433
Weapon.SetActive(false);
35-
Object.DontDestroyOnLoad(Weapon);
3634
Descriptor = Weapon.GetComponent<WeaponDescriptor>();
37-
Object.DontDestroyOnLoad(Descriptor);
3835
}
3936
catch
4037
{

Custom Weapons/CustomWeaponsPlugin.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ void Awake()
3131
CurrentWeaponName = Config.Bind("_data", "CurrentWeaponName", "_default", new ConfigDescription("", null, new ConfigurationManagerAttributes { Browsable = false }));
3232
PreviousWeapon = Config.Bind("Keybinds", "PreviousWeapon", new KeyboardShortcut(KeyCode.F7), "Key to switch to the previous weapon");
3333
NextWeapon = Config.Bind("Keybinds", "NextWeapon", new KeyboardShortcut(KeyCode.F8), "Key to switch to the next weapon");
34-
foreach (KeyCode key in KeyboardShortcut.AllKeyCodes)
35-
{
36-
Logger.LogMessage($"Key: {key}");
37-
}
3834
}
3935

4036
void GetObjects()

0 commit comments

Comments
 (0)