private void Update() { if (isObserve) { if ((!IsValidParty() || !IsConnect()) && !queryInvalidRoom) { if (!checkInviteListDone) { if (MonoBehaviourSingleton <UserInfoManager> .I.ExistsPartyInvite) { if (!isSendingInviteList) { if (!GameSceneEvent.IsStay()) { GameSceneEvent.Stay(); isStayEvent = true; } MonoBehaviourSingleton <PartyManager> .I.SendInvitedParty(delegate { if (isStayEvent) { GameSceneEvent.Resume(null); } checkInviteListDone = true; }, false); isSendingInviteList = true; } } else { checkInviteListDone = true; } } else { string currentSectionName = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName(); if (section != null && section.sectionData != (GameSceneTables.SectionData)null && section.sectionData.sectionName == currentSectionName && MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible()) { queryInvalidRoom = true; if (dispatchCallBack != null) { dispatchCallBack("INVALID_ROOM"); OffObserve(); } } } } else if (sendInfoSpan.IsReady()) { Protocol.Try(delegate { MonoBehaviourSingleton <PartyManager> .I.SendInfo(delegate { }); }); } } }
protected static void StayEvent() { GameSceneEvent.Stay(); }