chore: add new meta files for TileRegistry, LevelDefinition, GameUiCoordinator, and test assets
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Core.Domain;
|
||||
using UnityEngine;
|
||||
using Debug = UnityEngine.Debug;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
namespace Infrastructure.Unity
|
||||
@@ -30,7 +31,7 @@ namespace Infrastructure.Unity
|
||||
|
||||
public IEnumerator GenerateAsync(SoundManager soundManager, TileRegistry registry, CameraController camera, RumbleManager rumble, Action onComplete)
|
||||
{
|
||||
if (levelDefinition == null)
|
||||
if (!levelDefinition)
|
||||
{
|
||||
Debug.LogError("LevelGenerator: levelDefinition is not assigned. Assign a LevelDefinition asset in the Inspector.");
|
||||
onComplete?.Invoke();
|
||||
|
||||
Reference in New Issue
Block a user