summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/TimelineEventProxy.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-03 19:54:38 +0800
committerchai <chaifix@163.com>2021-09-03 19:54:38 +0800
commit2a061be5b19e7b85e58ae6405368e28bdc073048 (patch)
treeeb447b84a2c016f6f9ea7d71cf3357a1cbfe1c2c /Assets/Scripts/Unit/TimelineEventProxy.cs
parent09fe2bbb41e25e176ac26da56360899870ad80ec (diff)
*misc
Diffstat (limited to 'Assets/Scripts/Unit/TimelineEventProxy.cs')
-rw-r--r--Assets/Scripts/Unit/TimelineEventProxy.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/TimelineEventProxy.cs b/Assets/Scripts/Unit/TimelineEventProxy.cs
index 7d2231c6..da4185a7 100644
--- a/Assets/Scripts/Unit/TimelineEventProxy.cs
+++ b/Assets/Scripts/Unit/TimelineEventProxy.cs
@@ -155,6 +155,8 @@ public partial class TimelineEventProxy
if (effect == null)
return;
string path = effect.effectPath;
+ if (path == null || path == "")
+ return;
GameObject prefab = ResourceManager.Instance.LoadAsset<GameObject>(path);
if (prefab != null)
{
@@ -186,6 +188,8 @@ public partial class TimelineEventProxy
if (e == null)
return;
string projectilePath = e.projectilePath;
+ if (projectilePath == null || projectilePath == "")
+ return;
GameObject prefab = ResourceManager.Instance.LoadAsset<GameObject>(projectilePath);
if(prefab == null)
{