void OnEnable() { if (Application.isPlaying) { entries = entries.Concat(betweenSceneReferences.Where(g => g.gameObject != null)).Where(g => g.gameObject != null).ToList(); FixEntries(); ById.Clear(); ByObject.Clear(); betweenSceneReferences = entries.Where(g => g.gameObject != null).ToList(); } }
public void Clear() { ById.Clear(); ByObject.Clear(); entries.Clear(); }