aswig and multiplayer fixes
This commit is contained in:
parent
d25800eca4
commit
1bdf77e8d6
6 changed files with 102 additions and 49 deletions
|
|
@ -637,7 +637,7 @@ namespace RacesOfValheim
|
|||
|
||||
if (prefab != null && playerVisual != null)
|
||||
{
|
||||
playerVisual.localScale = Vector3.one * 0.001f;
|
||||
playerVisual.gameObject.SetActive(false);
|
||||
|
||||
Transform visual = prefab.transform.Find("Visual");
|
||||
if (visual != null)
|
||||
|
|
@ -726,6 +726,11 @@ namespace RacesOfValheim
|
|||
{
|
||||
playerVisual.localScale = Vector3.one;
|
||||
playerVisual.gameObject.SetActive(true);
|
||||
|
||||
ZSyncAnimation zanim = Player.m_localPlayer.GetComponent<ZSyncAnimation>();
|
||||
if (zanim != null) zanim.SetBool("sit", false);
|
||||
Animator anim = playerVisual.GetComponent<Animator>();
|
||||
if (anim != null) anim.SetBool("sit", false);
|
||||
}
|
||||
|
||||
isTransformed = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue