| | |
| | |
|
| | | public int openActviePoint { get; private set; }
|
| | | public int autoOpenLimitLevel { get; private set; }
|
| | | int autoOpenLimitTimes = 0;
|
| | |
|
| | | int m_SelectIncident;
|
| | | public int selectIncident
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.baseData.LV > autoOpenLimitLevel)
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenHazyRegionWin());
|
| | | if (hazyRegionOpenTimes > autoOpenLimitTimes || !IsAllIncidentComplete())
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenHazyRegionWin());
|
| | | }
|
| | | }
|
| | | //WindowCenter.Instance.Close<HazyAdventureHintWin>();
|
| | | //taskModel.AutomaticTripToTask(taskModel.currentMission);
|
| | |
| | | if (PlayerDatas.Instance.baseData.LV > autoOpenLimitLevel
|
| | | && IsIncidentDungeon(cacheMapId))
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenHazyRegionWin());
|
| | | if (hazyRegionOpenTimes > autoOpenLimitTimes || !IsAllIncidentComplete())
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenHazyRegionWin());
|
| | | }
|
| | | }
|
| | | }
|
| | | cacheMapId = mapId;
|
| | |
| | |
|
| | | funcConfig = FuncConfigConfig.Get("HazyRegionAutoOpen");
|
| | | autoOpenLimitLevel = int.Parse(funcConfig.Numerical1);
|
| | | int.TryParse(funcConfig.Numerical2, out autoOpenLimitTimes);
|
| | | }
|
| | |
|
| | | public bool TryGetIncident(int id, out Incident incident)
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | public bool IsAllIncidentComplete()
|
| | | {
|
| | | var allComplete = true;
|
| | | foreach (var id in m_Incidents.Keys)
|
| | | {
|
| | | Incident incident;
|
| | | if (TryGetIncident(id, out incident))
|
| | | {
|
| | | if (incident.state != IncidentState.Complete)
|
| | | {
|
| | | allComplete = false;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | return allComplete;
|
| | | }
|
| | |
|
| | | public void DisplayErrorRemind(int error)
|
| | | {
|
| | | switch (error)
|