/// <summary> /// /// </summary> /// <param name="psui"></param> public void RemoveUIPlayer(bl_PlayerScoreboardUI psui) { if (cachePlayerScoreboard.Contains(psui)) { cachePlayerScoreboard.Remove(psui); } }
public override void OnPhotonPlayerDisconnected(PhotonPlayer otherPlayer) { if (ExistPlayerOnList(otherPlayer)) { bl_PlayerScoreboardUI pscui = GetPlayerScoreboardUI(otherPlayer); RemoveUIPlayer(pscui); pscui.Destroy(); } }
public void OnPlayerLeftRoom(Player otherPlayer) { if (ExistPlayerOnList(otherPlayer)) { bl_PlayerScoreboardUI pscui = GetPlayerScoreboardUI(otherPlayer); RemoveUIPlayer(pscui); pscui.Destroy(); } }