private static void UpdateFakeConfirm(int seq) { List <CFakePvPHelper.FakePlayerConfirm> list = CFakePvPHelper.SelectConfirmPlayer(CFakePvPHelper.CurrentSelectTime++); CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CMatchingSystem.PATH_MATCHING_CONFIRMBOX); if (form != null) { for (int i = 0; i < list.get_Count(); i++) { CFakePvPHelper.FakePlayerConfirm fakePlayerConfirm = list.get_Item(i); fakePlayerConfirm.bConfirmed = true; CFakePvPHelper.ConfirmedFakePlayerNum++; Singleton <CMatchingSystem> .GetInstance().confirmPlayerNum++; CMatchingView.UpdateConfirmBox(form.gameObject, fakePlayerConfirm.FakePlayer.ullUid); if (CFakePvPHelper.ConfirmedFakePlayerNum == CFakePvPHelper.FakePlayerList.get_Count()) { Singleton <CTimerManager> .GetInstance().RemoveTimer(new CTimer.OnTimeUpHandler(CFakePvPHelper.UpdateFakeConfirm)); } if (Singleton <CMatchingSystem> .GetInstance().confirmPlayerNum == Singleton <CMatchingSystem> .GetInstance().currentMapPlayerNum) { CFakePvPHelper.GotoHeroSelectPage(); } } } }
public static void OnSelfConfirmed(GameObject root, int PlayerNum) { Singleton <CMatchingSystem> .GetInstance().confirmPlayerNum++; RoomInfo roomInfo = Singleton <CRoomSystem> .GetInstance().roomInfo; DebugHelper.Assert(roomInfo != null); if (roomInfo != null) { CMatchingView.UpdateConfirmBox(root, roomInfo.selfInfo.ullUid); if (Singleton <CMatchingSystem> .GetInstance().confirmPlayerNum == Singleton <CMatchingSystem> .GetInstance().currentMapPlayerNum) { CFakePvPHelper.GotoHeroSelectPage(); } } }