Skip to content

Commit

Permalink
fixed jump scene error
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonXuDeveloper committed Jul 9, 2023
1 parent 88bf8de commit 1920adb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Linq;
using System.Threading.Tasks;
using JEngine.Core;
using UnityEditor;
Expand Down Expand Up @@ -35,8 +36,11 @@ private static async void DoChange()
DynamicGI.UpdateEnvironment();
}

var initJEngine = GameObject.Find("InitJEngine");
var comp = initJEngine.GetComponent<InitJEngine>();
var comp = Object.FindFirstObjectByType<InitJEngine>();
if (comp == null)
{
Debug.LogWarning("没有找到InitJEngine脚本,无法检验秘钥是否正确");
}
var key = comp.key;
var k = PlayerPrefs.GetString($"{prefix}.EncryptPassword", "");
if (string.IsNullOrEmpty(k))
Expand Down

0 comments on commit 1920adb

Please sign in to comment.