mirror of
https://github.com/Kizuren/SynthMaze.git
synced 2026-01-05 22:19:30 +01:00
Updated to Unity6.33f1 and imported updated AStarPath package
This commit is contained in:
parent
46ae47a9f0
commit
ceba0343d3
35 changed files with 9662 additions and 1604 deletions
|
|
@ -127,7 +127,7 @@ namespace Pathfinding.Serialization {
|
|||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(guid)) {
|
||||
UnityReferenceHelper[] helpers = UnityEngine.Object.FindObjectsOfType(typeof(UnityReferenceHelper)) as UnityReferenceHelper[];
|
||||
UnityReferenceHelper[] helpers = UnityEngine.Object.FindObjectsByType<UnityReferenceHelper>(FindObjectsSortMode.None);
|
||||
|
||||
for (int i = 0; i < helpers.Length; i++) {
|
||||
if (helpers[i].GetGUID() == guid) {
|
||||
|
|
|
|||
|
|
@ -341,9 +341,9 @@ namespace Pathfinding.Serialization {
|
|||
}
|
||||
|
||||
#if UNITY_2020_1_OR_NEWER
|
||||
foreach (var helper in UnityEngine.Object.FindObjectsOfType<UnityReferenceHelper>(true))
|
||||
foreach (var helper in UnityEngine.Object.FindObjectsByType<UnityReferenceHelper>(FindObjectsSortMode.None))
|
||||
#else
|
||||
foreach (var helper in UnityEngine.Object.FindObjectsOfType<UnityReferenceHelper>())
|
||||
foreach (var helper in UnityEngine.Object.FindObjectsByType<UnityReferenceHelper>(FindObjectsSortMode.None))
|
||||
#endif
|
||||
{
|
||||
if (helper.GetGUID() == guid) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue