Skip to content

Commit

Permalink
fix: drop support for older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
uweeby committed Feb 19, 2021
1 parent 9d7a2ee commit 5dc12b5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Assets/Mirage/Runtime/NetworkIdentity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
using UnityEngine.Events;
#if UNITY_EDITOR
using UnityEditor;
#if UNITY_2018_3_OR_NEWER
using UnityEditor.Experimental.SceneManagement;
#endif
#endif

namespace Mirage
{
Expand Down Expand Up @@ -617,11 +615,7 @@ void SetupIDs()
sceneId = 0;
// NOTE: might make sense to use GetPrefabStage for asset
// path, but let's not touch it while it works.
#if UNITY_2020_1_OR_NEWER
string path = PrefabStageUtility.GetCurrentPrefabStage().assetPath;
#else
string path = PrefabStageUtility.GetCurrentPrefabStage().prefabAssetPath;
#endif

AssignAssetID(path);
}
Expand Down

0 comments on commit 5dc12b5

Please sign in to comment.