protected override void Load() { Instance = this; LoadPeriodicSave(); LoadSkillSets(); Storage = CreateStorage(); Storage.Load(); U.Events.OnPlayerConnected += U_Events_OnPlayerConnected; UnturnedPlayerEvents.OnPlayerRevive += UnturnedPlayerEvents_OnPlayerRevive; }
protected override void Unload() { UnturnedPlayerEvents.OnPlayerRevive -= UnturnedPlayerEvents_OnPlayerRevive; U.Events.OnPlayerConnected -= U_Events_OnPlayerConnected; if (Storage != null) { Storage.Unload(); } Storage = null; SkillSets = null; Instance = null; }