Fixed HumanoidPreferences reference to OnLoadHumanoidPlayerPun

This commit is contained in:
Pascal Serrarens 2022-01-26 15:14:21 +01:00
parent 6d7f56e289
commit c97a54a009
2 changed files with 21 additions and 19 deletions

View File

@ -154,21 +154,21 @@ namespace Passer.Humanoid {
VisitorSceneInspector();
if (reload) {
reload = false;
#if hUNET
OnLoadHumanoidPlayerUnet.CheckHumanoidPlayer();
#endif
#if hPHOTON1 || hPHOTON2
OnLoadHumanoidPlayerPun.CheckHumanoidPlayer();
#endif
#if hBOLT
OnLoadHumanoidPlayerBolt.CheckHumanoidPlayer();
#endif
#if hMIRROR
OnLoadHumanoidPlayerMirror.CheckHumanoidPlayer();
#endif
}
// if (reload) {
// reload = false;
//#if hUNET
// OnLoadHumanoidPlayerUnet.CheckHumanoidPlayer();
//#endif
//#if hPHOTON1 || hPHOTON2
// OnLoadHumanoidPlayerPun.CheckHumanoidPlayer();
//#endif
//#if hBOLT
// OnLoadHumanoidPlayerBolt.CheckHumanoidPlayer();
//#endif
//#if hMIRROR
// OnLoadHumanoidPlayerMirror.CheckHumanoidPlayer();
//#endif
// }
},
keywords = new HashSet<string>(
new[] { "Humanoid", "Oculus", "SteamVR" }
@ -189,9 +189,11 @@ namespace Passer.Humanoid {
foreach (string visitor in HumanoidVisitors.visitors) {
string name = visitor;
ix = name.LastIndexOf('/');
name = name.Substring(ix + 1);
name = name.Substring(0, name.Length - 6); // remove .unity
visitorNames[i++] = name;
if (ix >= 0) {
name = name.Substring(ix + 1);
name = name.Substring(0, name.Length - 6); // remove .unity
visitorNames[i++] = name;
}
}
string visitorSceneName = HumanoidPreferences.visitorSceneName;

View File

@ -1,6 +1,6 @@
{
"name": "com.passervr.humanoidcontrol_free",
"version": "4.1.1-beta",
"version": "4.1.2-beta",
"displayName": "Humanoid Control 4 Free",
"description": "Humanoid Control is the next generation of human character control. It will provide you with an effortless setup for having animated characters in your environments.",
"unity": "2019.4",