Moved MakeHuman to Resources for networking, enabled isRemote on RemoteHumanoid
Fixed avatarPrefabName when no remove Avatar is given.
This commit is contained in:
parent
bf42b39a7b
commit
c3470fc005
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 31905e5b2805d2e42a3349be1b860d55
|
guid: ed397d272bcc7c14eb9d4a69d7ba578f
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user