From 38bbe9af958cac89c56b35ee6c7ba5b2ed44185c Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 21 一月 2019 21:34:33 +0800
Subject: [PATCH] 382 地图编辑器逻辑提交
---
Core/MapEditor/Behavior/Bhv_MapData.cs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Core/MapEditor/Behavior/Bhv_MapData.cs b/Core/MapEditor/Behavior/Bhv_MapData.cs
index 2aba8a9..62c9612 100644
--- a/Core/MapEditor/Behavior/Bhv_MapData.cs
+++ b/Core/MapEditor/Behavior/Bhv_MapData.cs
@@ -101,6 +101,14 @@
eventList.Add(_eventBhv);
_eventBhv.Load(br);
}
+ else if (_type == Evt.E_EventType.SceneObject)
+ {
+ var _eventBhv = _go.AddComponent<Bhv_Evt_RefreshSceneObject>();
+ _eventBhv.type = _type;
+ _eventBhv.transform.SetParent(transform.Find(NodeName_EventList));
+ eventList.Add(_eventBhv);
+ _eventBhv.Load(br);
+ }
}
_count = br.ReadInt32();
for (int i = 0; i < _count; ++i)
--
Gitblit v1.8.0