public void Awake() { Instance = this; if (!Level.Instance.TryGetPersistence(this, out _persistence)) { _persistence = new RoomPersistence(Tag);// (_persistenceTemplate); Level.Instance.Add(_persistence); _isRegistering = true; } else { DestroyImmediate(_objectsParent.gameObject); _persistence.LoadContent(this); _isRegistering = false; } OnRoomAwakeStaticHandler?.Invoke(this); }