| | |
| | | // 跨服竞技场改成匹配3个对象,进行选择挑战
|
| | | public List<HC001_tagGCCrossRealmPKMatchOK.tagGCCrossRealmPKMatchPlayer> matchPlayers = new List<HC001_tagGCCrossRealmPKMatchOK.tagGCCrossRealmPKMatchPlayer>();
|
| | | public event Action UpdateMatchPlayersEvent;
|
| | | public bool loginQueryMatch = false;
|
| | | public float queryMatchTime; //查询匹配时间, 间隔查询
|
| | |
|
| | | public Dictionary<int, GA_PlayerClient.PlayerInfo> robots = new Dictionary<int, GA_PlayerClient.PlayerInfo>();
|
| | |
|
| | |
| | | InitData();
|
| | | robots.Clear();
|
| | | matchPlayers.Clear();
|
| | | loginQueryMatch = false;
|
| | | queryMatchTime = 0;
|
| | | }
|
| | |
|
| | | public void OnAfterPlayerDataInitialize()
|
| | |
| | |
|
| | | void OnDay()
|
| | | {
|
| | | loginQueryMatch = false;
|
| | | queryMatchTime = 0;
|
| | | }
|
| | |
|
| | | private void UpdateSecond()
|
| | |
| | | {
|
| | | if (type == 0)
|
| | | {
|
| | | if (loginQueryMatch)
|
| | | if (Time.time - queryMatchTime < 240)
|
| | | return;
|
| | | else
|
| | | loginQueryMatch = true;
|
| | | queryMatchTime = Time.time;
|
| | | }
|
| | |
|
| | | var match = new CC101_tagCMCrossRealmPKMatch();
|