|
@@ -1,5 +1,6 @@
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
+using Core.Audio;
|
|
|
using Core.Language;
|
|
|
using Excel2Json;
|
|
|
using Fort23.Core;
|
|
@@ -91,6 +92,14 @@ namespace Fort23.Mono
|
|
|
CreatShengShiEvent();
|
|
|
ChagneShenshiBtnActive();
|
|
|
Slider_SmallJD.value = PlayerManager.Instance.CurrentsmallPlaces.completionEventCount;
|
|
|
+ SmallPlacesConfig smallPlacesConfig =
|
|
|
+ ConfigComponent.Instance.Get<SmallPlacesConfig>(PlayerManager.Instance.CurrentsmallPlaces.id);
|
|
|
+
|
|
|
+ if (PlayerManager.Instance.CurrentsmallPlaces.completionEventCount ==
|
|
|
+ smallPlacesConfig.CompletionEventCount)
|
|
|
+ {
|
|
|
+ AudioManager.Instance.PlayAudio("ui_jinduwancheng");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public void UpdateDaoYouCoun()
|
|
@@ -163,25 +172,21 @@ namespace Fort23.Mono
|
|
|
{
|
|
|
PlayerGuideManager.Instance.NextGuide();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
AccountFileInfo.EventList eventList = AccountFileInfo.Instance.playerData.eventList.FirstOrDefault(e =>
|
|
|
e.guid == AccountFileInfo.Instance.playerData.CurrentZuiZhongEventListId);
|
|
|
-
|
|
|
+
|
|
|
EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventList.eventID);
|
|
|
if (eventConfig.EventTriggerType == 4)
|
|
|
{
|
|
|
-
|
|
|
if (eventList.isCompleted1)
|
|
|
{
|
|
|
EventSystemManager.Instance.CompleteEvent(eventList);
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (eventList != null)
|
|
|
{
|
|
|
EventSystemManager.Instance.CancelEvent();
|