Exemple #1
0
        protected override void Load()
        {
            Instance = this;

            LoadPeriodicSave();
            LoadSkillSets();
            Storage = CreateStorage();
            Storage.Load();

            U.Events.OnPlayerConnected          += U_Events_OnPlayerConnected;
            UnturnedPlayerEvents.OnPlayerRevive += UnturnedPlayerEvents_OnPlayerRevive;
        }
Exemple #2
0
 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;
 }