/** OnRegionListReceived */ public override void OnRegionListReceived(Photon.Realtime.RegionHandler a_region_handler) { Tool.Log("AutoJoinRandomRoom", "OnRegionListReceived"); if (a_region_handler.EnabledRegions != null) { for (int ii = 0; ii < a_region_handler.EnabledRegions.Count; ii++) { Tool.Log("AutoJoinRandomRoom", "OnRegionListReceived : " + a_region_handler.EnabledRegions[ii].ToString()); } } }
/** [Fee.Network.Pun_MonoBehaviour]マスター。接続。リージョン受信。 */ public void OnPunRegionListReceived(Photon.Realtime.RegionHandler a_region_handler) { #if (UNITY_EDITOR) || (DEVELOPMENT_BUILD) || (USE_DEF_FEE_DEBUGTOOL) { string t_text = ""; foreach (Photon.Realtime.Region t_item in a_region_handler.EnabledRegions) { t_text += " Code = " + t_item.Code; t_text += " HostAndPort = " + t_item.HostAndPort; t_text += " Cluster = " + t_item.Cluster; t_text += " WasPinged = " + t_item.WasPinged.ToString(); t_text += " Ping = " + t_item.Ping.ToString(); t_text += "\n"; } Tool.Log("Pun", "OnRegionListReceived" + "\n" + t_text); } #endif }
/** マスター。接続。リージョン受信。 */ public override void OnRegionListReceived(Photon.Realtime.RegionHandler a_region_handler) { this.pun.OnPunRegionListReceived(a_region_handler); }