File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Assets/BossRoom/Scripts/Client/Game/Character Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,30 @@ public class ClientCharacterVisualization : NetworkBehaviour
64
64
65
65
Quaternion m_LerpedRotation ;
66
66
67
+ void Awake ( )
68
+ {
69
+ foreach ( var rendererComponent in GetComponentsInChildren < Renderer > ( ) )
70
+ {
71
+ rendererComponent . enabled = false ;
72
+ }
73
+
74
+ enabled = false ;
75
+ }
76
+
67
77
public override void OnNetworkSpawn ( )
68
78
{
69
79
if ( ! IsClient || transform . parent == null )
70
80
{
71
- enabled = false ;
72
81
return ;
73
82
}
74
83
84
+ foreach ( var rendererComponent in GetComponentsInChildren < Renderer > ( ) )
85
+ {
86
+ rendererComponent . enabled = true ;
87
+ }
88
+
89
+ enabled = true ;
90
+
75
91
m_ActionViz = new ActionVisualization ( this ) ;
76
92
77
93
m_NetState = GetComponentInParent < NetworkCharacterState > ( ) ;
You can’t perform that action at this time.
0 commit comments