Fixed Editor-only scripts preventing build
This commit is contained in:
parent
629b9987c5
commit
3df0445d42
@ -104,6 +104,7 @@ namespace Passer.Humanoid {
|
|||||||
// return serializedSettings;
|
// return serializedSettings;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
private const string networkingSupportKey = "HumanoidNetworkingSupport";
|
private const string networkingSupportKey = "HumanoidNetworkingSupport";
|
||||||
public static NetworkingSystems networkingSupport {
|
public static NetworkingSystems networkingSupport {
|
||||||
get {
|
get {
|
||||||
@ -125,8 +126,10 @@ namespace Passer.Humanoid {
|
|||||||
EditorPrefs.SetString(visitorSceneNameKey, value);
|
EditorPrefs.SetString(visitorSceneNameKey, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
static class HumanoidPreferencesIMGUIRegister {
|
static class HumanoidPreferencesIMGUIRegister {
|
||||||
public static bool reload;
|
public static bool reload;
|
||||||
|
|
||||||
@ -154,21 +157,21 @@ namespace Passer.Humanoid {
|
|||||||
|
|
||||||
VisitorSceneInspector();
|
VisitorSceneInspector();
|
||||||
|
|
||||||
// if (reload) {
|
// if (reload) {
|
||||||
// reload = false;
|
// reload = false;
|
||||||
//#if hUNET
|
//#if hUNET
|
||||||
// OnLoadHumanoidPlayerUnet.CheckHumanoidPlayer();
|
// OnLoadHumanoidPlayerUnet.CheckHumanoidPlayer();
|
||||||
//#endif
|
//#endif
|
||||||
//#if hPHOTON1 || hPHOTON2
|
//#if hPHOTON1 || hPHOTON2
|
||||||
// OnLoadHumanoidPlayerPun.CheckHumanoidPlayer();
|
// OnLoadHumanoidPlayerPun.CheckHumanoidPlayer();
|
||||||
//#endif
|
//#endif
|
||||||
//#if hBOLT
|
//#if hBOLT
|
||||||
// OnLoadHumanoidPlayerBolt.CheckHumanoidPlayer();
|
// OnLoadHumanoidPlayerBolt.CheckHumanoidPlayer();
|
||||||
//#endif
|
//#endif
|
||||||
//#if hMIRROR
|
//#if hMIRROR
|
||||||
// OnLoadHumanoidPlayerMirror.CheckHumanoidPlayer();
|
// OnLoadHumanoidPlayerMirror.CheckHumanoidPlayer();
|
||||||
//#endif
|
//#endif
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
keywords = new HashSet<string>(
|
keywords = new HashSet<string>(
|
||||||
new[] { "Humanoid", "Oculus", "SteamVR" }
|
new[] { "Humanoid", "Oculus", "SteamVR" }
|
||||||
@ -212,5 +215,5 @@ namespace Passer.Humanoid {
|
|||||||
return anyChanged;
|
return anyChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
@ -5,6 +5,7 @@ using UnityEditor;
|
|||||||
|
|
||||||
namespace Passer.Humanoid {
|
namespace Passer.Humanoid {
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
[InitializeOnLoad]
|
[InitializeOnLoad]
|
||||||
public class HumanoidVisitors {
|
public class HumanoidVisitors {
|
||||||
|
|
||||||
@ -103,4 +104,5 @@ namespace Passer.Humanoid {
|
|||||||
AddScene(newSceneName);
|
AddScene(newSceneName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user