Skip to content

Commit

Permalink
[fix] 修复??=语法在2019下编译出错的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
walon committed Nov 30, 2022
1 parent 93f855f commit b066cc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Editor/Installer/UpdateController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial class InstallerController
{
private string _hybridclrLocalVersion;

public string HybridclrLocalVersion => _hybridclrLocalVersion ??= GetHybridCLRLocalVersion();
public string HybridclrLocalVersion => _hybridclrLocalVersion != null ? _hybridclrLocalVersion : _hybridclrLocalVersion = GetHybridCLRLocalVersion();

private string GetHybridCLRLocalVersion()
{
Expand All @@ -31,7 +31,7 @@ private string GetHybridCLRLocalVersion()

private string _il2cppPlusLocalVersion;

public string Il2cppPlusLocalVersion => _il2cppPlusLocalVersion ??= GetIl2cppPlusLocalVersion();
public string Il2cppPlusLocalVersion => _il2cppPlusLocalVersion != null ? _il2cppPlusLocalVersion : _il2cppPlusLocalVersion = GetIl2cppPlusLocalVersion();

private string GetIl2cppPlusLocalVersion()
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.focus-creative-games.hybridclr_unity",
"version": "1.1.1",
"version": "1.1.2",
"displayName": "HybridCLR",
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
"category": "Runtime",
Expand Down

0 comments on commit b066cc5

Please sign in to comment.