Moved MakeHuman to Resources for networking, enabled isRemote on RemoteHumanoid

Fixed avatarPrefabName when no remove Avatar is given.
This commit is contained in:
Pascal Serrarens 2022-02-08 15:35:56 +01:00
parent bf42b39a7b
commit c3470fc005
5 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 31905e5b2805d2e42a3349be1b860d55 guid: ed397d272bcc7c14eb9d4a69d7ba578f
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -163,7 +163,7 @@ MonoBehaviour:
animatorParameterSidewardIndex: 0 animatorParameterSidewardIndex: 0
animatorParameterRotationIndex: 0 animatorParameterRotationIndex: 0
animatorParameterHeightIndex: 0 animatorParameterHeightIndex: 0
isRemote: 0 isRemote: 1
nwId: 0 nwId: 0
id: -1 id: -1
--- !u!1 &1438423234026816 --- !u!1 &1438423234026816

View File

@ -154,7 +154,7 @@ namespace Passer.Humanoid {
name = humanoid.gameObject.name; name = humanoid.gameObject.name;
if (humanoid.remoteAvatar == null) if (humanoid.remoteAvatar == null)
avatarPrefabName = humanoid.avatarRig.name.Substring(0, humanoid.avatarRig.name.Length - 7); avatarPrefabName = humanoid.avatarRig.name; // .Substring(0, humanoid.avatarRig.name.Length - 7);
else else
avatarPrefabName = humanoid.remoteAvatar.name; avatarPrefabName = humanoid.remoteAvatar.name;