/* * Other network related methods */ public override void OnPlayerLeftRoom(Player otherPlayer) { if (otherPlayer.NickName.Equals(GlobalValues.HostTag)) { Disconnect(); } if (PhotonNetwork.IsMasterClient) { hostNotification.titleObj.text = "Player Left"; hostNotification.descriptionObj.text = $"{otherPlayer.NickName}|{_playerDictionary[otherPlayer.NickName]} disconnected from the room"; hostNotification.OpenNotification(); if (GlobalMethods.GetRole(otherPlayer.NickName) == "Participant") { _vacantPlayerTag = _playerDictionary[otherPlayer.NickName]; _playerDictionary.Remove(otherPlayer.NickName); statTracker.OnPlayerDisconnect(otherPlayer.NickName, _vacantPlayerTag); } } }