Skip to content

Commit

Permalink
feat: c# 8 nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr0sT committed Aug 6, 2020
1 parent 443e8dd commit b9227f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static Window InstantiateWindow(string fullWindowPath)
var windowPrefab = GetWindowPrefab(fullWindowPath);

window = GameObject.Instantiate(windowPrefab, root).GetComponent<Window>() ??
throw new ArgumentException($"WindowsManager: no Window script on window {fullWindowPath}");
throw new ArgumentException($"WindowsManager: missing Window script on window {fullWindowPath}");

window.name = window.name.Replace("(Clone)", string.Empty);

Expand Down

0 comments on commit b9227f9

Please sign in to comment.