@@ -49,7 +49,7 @@ public uint objectNetworkId
49
49
}
50
50
}
51
51
52
- public int ownerConnectionId
52
+ public int ownerClientId
53
53
{
54
54
get
55
55
{
@@ -87,7 +87,7 @@ public void SendToServer(string messageType, string channelName, byte[] data)
87
87
Debug . LogWarning ( "MLAPI: Sending messages from server to server is not yet supported" ) ;
88
88
return ;
89
89
}
90
- NetworkingManager . singleton . Send ( NetworkingManager . singleton . localConnectionId , messageType , channelName , data ) ;
90
+ NetworkingManager . singleton . Send ( NetworkingManager . singleton . serverClientId , messageType , channelName , data ) ;
91
91
}
92
92
93
93
public void SendToLocalClient ( string messageType , string channelName , byte [ ] data )
@@ -97,7 +97,7 @@ public void SendToLocalClient(string messageType, string channelName, byte[] dat
97
97
Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
98
98
return ;
99
99
}
100
- NetworkingManager . singleton . Send ( ownerConnectionId , messageType , channelName , data ) ;
100
+ NetworkingManager . singleton . Send ( ownerClientId , messageType , channelName , data ) ;
101
101
}
102
102
103
103
public void SendToNonLocalClients ( string messageType , string channelName , byte [ ] data )
@@ -107,37 +107,37 @@ public void SendToNonLocalClients(string messageType, string channelName, byte[]
107
107
Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
108
108
return ;
109
109
}
110
- NetworkingManager . singleton . Send ( messageType , channelName , data , ownerConnectionId ) ;
110
+ NetworkingManager . singleton . Send ( messageType , channelName , data , ownerClientId ) ;
111
111
}
112
112
113
- public void SendToClient ( int connectionId , string messageType , string channelName , byte [ ] data )
113
+ public void SendToClient ( int clientId , string messageType , string channelName , byte [ ] data )
114
114
{
115
115
if ( ! isServer )
116
116
{
117
117
Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
118
118
return ;
119
119
}
120
- NetworkingManager . singleton . Send ( connectionId , messageType , channelName , data ) ;
120
+ NetworkingManager . singleton . Send ( clientId , messageType , channelName , data ) ;
121
121
}
122
122
123
- public void SendToClients ( int [ ] connectionIds , string messageType , string channelName , byte [ ] data )
123
+ public void SendToClients ( int [ ] clientIds , string messageType , string channelName , byte [ ] data )
124
124
{
125
125
if ( ! isServer )
126
126
{
127
127
Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
128
128
return ;
129
129
}
130
- NetworkingManager . singleton . Send ( connectionIds , messageType , channelName , data ) ;
130
+ NetworkingManager . singleton . Send ( clientIds , messageType , channelName , data ) ;
131
131
}
132
132
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 )
134
134
{
135
135
if ( ! isServer )
136
136
{
137
137
Debug . LogWarning ( "MLAPI: Sending messages from client to other clients is not yet supported" ) ;
138
138
return ;
139
139
}
140
- NetworkingManager . singleton . Send ( connectionIds , messageType , channelName , data ) ;
140
+ NetworkingManager . singleton . Send ( clientIds , messageType , channelName , data ) ;
141
141
}
142
142
143
143
public void SendToClients ( string messageType , string channelName , byte [ ] data )
0 commit comments