private void Unload() { ZoneEditor[] editors = UnityEngine.Object.FindObjectsOfType <ZoneEditor>(); if (editors != null) { foreach (ZoneEditor editor in editors) { editor.OnPlayerDeath(); zoneEditors.Remove(editor); UnityEngine.Object.Destroy(editor); } } ins = null; }
private void OnServerInitialized() { ins = this; LoadData(); FindLootTypes(); }