@@ -49,7 +49,7 @@ public uint objectNetworkId
4949 }
5050 }
5151
52- public int ownerConnectionId
52+ public int ownerClientId
5353 {
5454 get
5555 {
@@ -87,7 +87,7 @@ public void SendToServer(string messageType, string channelName, byte[] data)
8787 Debug . LogWarning ( "MLAPI: Sending messages from server to server is not yet supported" ) ;
8888 return ;
8989 }
90- NetworkingManager . singleton . Send ( NetworkingManager . singleton . localConnectionId , messageType , channelName , data ) ;
90+ NetworkingManager . singleton . Send ( NetworkingManager . singleton . serverClientId , messageType , channelName , data ) ;
9191 }
9292
9393 public void SendToLocalClient ( string messageType , string channelName , byte [ ] data )
@@ -97,7 +97,7 @@ public void SendToLocalClient(string messageType, string channelName, byte[] dat
9797 Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
9898 return ;
9999 }
100- NetworkingManager . singleton . Send ( ownerConnectionId , messageType , channelName , data ) ;
100+ NetworkingManager . singleton . Send ( ownerClientId , messageType , channelName , data ) ;
101101 }
102102
103103 public void SendToNonLocalClients ( string messageType , string channelName , byte [ ] data )
@@ -107,37 +107,37 @@ public void SendToNonLocalClients(string messageType, string channelName, byte[]
107107 Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
108108 return ;
109109 }
110- NetworkingManager . singleton . Send ( messageType , channelName , data , ownerConnectionId ) ;
110+ NetworkingManager . singleton . Send ( messageType , channelName , data , ownerClientId ) ;
111111 }
112112
113- public void SendToClient ( int connectionId , string messageType , string channelName , byte [ ] data )
113+ public void SendToClient ( int clientId , string messageType , string channelName , byte [ ] data )
114114 {
115115 if ( ! isServer )
116116 {
117117 Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
118118 return ;
119119 }
120- NetworkingManager . singleton . Send ( connectionId , messageType , channelName , data ) ;
120+ NetworkingManager . singleton . Send ( clientId , messageType , channelName , data ) ;
121121 }
122122
123- public void SendToClients ( int [ ] connectionIds , string messageType , string channelName , byte [ ] data )
123+ public void SendToClients ( int [ ] clientIds , string messageType , string channelName , byte [ ] data )
124124 {
125125 if ( ! isServer )
126126 {
127127 Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
128128 return ;
129129 }
130- NetworkingManager . singleton . Send ( connectionIds , messageType , channelName , data ) ;
130+ NetworkingManager . singleton . Send ( clientIds , messageType , channelName , data ) ;
131131 }
132132
133- public void SendToClients ( List < int > connectionIds , string messageType , string channelName , byte [ ] data )
133+ public void SendToClients ( List < int > clientIds , string messageType , string channelName , byte [ ] data )
134134 {
135135 if ( ! isServer )
136136 {
137137 Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
138138 return ;
139139 }
140- NetworkingManager . singleton . Send ( connectionIds , messageType , channelName , data ) ;
140+ NetworkingManager . singleton . Send ( clientIds , messageType , channelName , data ) ;
141141 }
142142
143143 public void SendToClients ( string messageType , string channelName , byte [ ] data )
0 commit comments