Disconnect not work
Options
Ruslan
✭
in Photon Bolt
Hello! I want to make disconnections of all players, took the code from your Api but nothing happens
What's my mistake?
void DisonnectAll(){
foreach (var connection in BoltNetwork.connections) {
connection.Disconnect ();
}
}
void Update(){
//Test Timer
Timer -= 1;
if (Timer <= 0) {
DisonnectAll ();
}
}
What's my mistake?
void DisonnectAll(){
foreach (var connection in BoltNetwork.connections) {
connection.Disconnect ();
}
}
void Update(){
//Test Timer
Timer -= 1;
if (Timer <= 0) {
DisonnectAll ();
}
}
0
Comments
-
What is happening instead?0
-
Nothing, the game continues as if nothing happenedKrzysztof_Bogdan said:What is happening instead?
0 -
I would make sure its the host that's trying to disconnect everyone.0