Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

PUN issue with playerlist

$
0
0
@Tobias

I added few bots in the game as players by
PhotonNetwork.CurrentRoom.AddPlayer(bot); //bot is derived from Photon.Realtime.Player

now when the bot loses the game I want to kick him so I am calling
PhotonNetwork.CloseConnection(bot);

but PhotonNetwork.CurrentRoom.Players, PhotonNetwork.PlayerList, PhotonNetwork.CurrentRoom.PlayerCount nothing is being affected I am not able to remove the bots from the game from the master client
So is there a different way to add bots as players since I need to use PUNTurnManager or a way to remove bots from the playerlist?

Viewing all articles
Browse latest Browse all 8947

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>