private void SpawnLevelPrefab() { var levelClone = Instantiate(_levelPrefab); levelClone.transform.parent = _levelSpawner.transform; LoadLevel?.Invoke(); }
/// <summary> /// Loads a new level. /// </summary> private void OnLoad() { LoadLevel?.Invoke(this, EventArgs.Empty); }