Fixed Editor-only scripts preventing build

This commit is contained in:
Pascal Serrarens 2022-02-02 14:35:52 +01:00
parent 629b9987c5
commit 3df0445d42
2 changed files with 21 additions and 16 deletions

View File

@ -104,6 +104,7 @@ namespace Passer.Humanoid {
// return serializedSettings;
//}
#if UNITY_EDITOR
private const string networkingSupportKey = "HumanoidNetworkingSupport";
public static NetworkingSystems networkingSupport {
get {
@ -125,8 +126,10 @@ namespace Passer.Humanoid {
EditorPrefs.SetString(visitorSceneNameKey, value);
}
}
#endif
}
#if UNITY_EDITOR
static class HumanoidPreferencesIMGUIRegister {
public static bool reload;
@ -212,5 +215,5 @@ namespace Passer.Humanoid {
return anyChanged;
}
}
#endif
}

View File

@ -5,6 +5,7 @@ using UnityEditor;
namespace Passer.Humanoid {
#if UNITY_EDITOR
[InitializeOnLoad]
public class HumanoidVisitors {
@ -103,4 +104,5 @@ namespace Passer.Humanoid {
AddScene(newSceneName);
}
}
#endif
}