|
|
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
|
|
using System;
|
|
|
using System.Collections;
|
|
|
using System.IO;
|
|
|
+using Excel2Json;
|
|
|
using Fort23.UTool;
|
|
|
|
|
|
public class PlayerDataEditorWindow : EditorWindow
|
|
|
@@ -65,6 +66,14 @@ public class PlayerDataEditorWindow : EditorWindow
|
|
|
{
|
|
|
if (int.TryParse(targetFolder, out int eventid))
|
|
|
{
|
|
|
+ EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventid);
|
|
|
+
|
|
|
+ if (eventConfig.EventTriggerType == 4 || eventConfig.EventTriggerType == 6)
|
|
|
+ {
|
|
|
+ AccountFileInfo.Instance.playerData.eventList.RemoveAll(e => e.eventID == eventid);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
var eventList = EventSystemManager.Instance.AddEvent(eventid);
|
|
|
|
|
|
if (eventList != null)
|