Skip to content

Commit

Permalink
fix: errors and warnings on 2023.1 alpha (#1120)
Browse files Browse the repository at this point in the history
* update unitask

* fix deprecation warning
  • Loading branch information
Hertzole committed Dec 22, 2022
1 parent 7d9d8bd commit 37fa113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Assets/Mirage/Runtime/Logging/EditorLogSettingsLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public static LogSettingsSO FindLogSettings()
if (cache != null)
return cache;

#if UNITY_2023_1_OR_NEWER
cache = Object.FindFirstObjectByType<LogSettingsSO>();
#else
cache = Object.FindObjectOfType<LogSettingsSO>();
#endif
if (cache != null)
return cache;

Expand Down
2 changes: 1 addition & 1 deletion Assets/Mirage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"com.unity.nuget.mono-cecil": "1.10.1",
"com.cysharp.unitask": "2.0.36"
"com.cysharp.unitask": "2.3.3"
},
"samples": [
{
Expand Down

0 comments on commit 37fa113

Please sign in to comment.