From 2a061be5b19e7b85e58ae6405368e28bdc073048 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 3 Sep 2021 19:54:38 +0800 Subject: *misc --- Assets/Scripts/Unit/TimelineEventProxy.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Assets/Scripts/Unit/TimelineEventProxy.cs') 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(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(projectilePath); if(prefab == null) { -- cgit v1.1-26-g67d0