private void Refresh() { if (!this.is_active && PunMonoSingleton <MyPhoton> .Instance.IsConnectedInRoom()) { this.SetParam(JSON_MyPhotonRoomParam.Parse(PunMonoSingleton <MyPhoton> .Instance.GetCurrentRoom().json).iname); this.is_active = true; this.chat_window.ChangeChatTypeTab(ChatWindow.eChatType.Room); } else if (ChatUtility.IsMultiQuestNow()) { this.is_active = true; } else if (this.is_active && !PunMonoSingleton <MyPhoton> .Instance.IsConnectedInRoom()) { this.chat_window.ExitRoomSelf(); this.is_active = false; } else { this.is_active = PunMonoSingleton <MyPhoton> .Instance.IsConnectedInRoom(); } }