summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/TimelineEventProxy.cs
diff options
context:
space:
mode:
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)
{