Skip to content

Commit

Permalink
Add warning and pragma explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoburatto committed Sep 27, 2023
1 parent 204e03b commit 4b6facd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/SS3D/Core/ApplicationInitializerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private void InitializeLauncher()
sceneToLoad = Scenes.Launcher;
}

// This call is async and not awaited. Hence the pragma disable.
#pragma warning disable CS4014
Scene.LoadAsync(sceneToLoad);
#pragma warning restore CS4014
Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/SS3D/Systems/Tile/TileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ private void CreateMap(string mapName)
{
if (_currentMap != null)
{
Log.Warning(this, $"A map is already loaded. {mapName}");
return;
}

Expand Down

0 comments on commit 4b6facd

Please sign in to comment.