diff options
author | chai <chaifix@163.com> | 2021-09-03 19:54:38 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-03 19:54:38 +0800 |
commit | 2a061be5b19e7b85e58ae6405368e28bdc073048 (patch) | |
tree | eb447b84a2c016f6f9ea7d71cf3357a1cbfe1c2c /Assets/Scripts/Unit/TimelineEventProxy.cs | |
parent | 09fe2bbb41e25e176ac26da56360899870ad80ec (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/TimelineEventProxy.cs')
-rw-r--r-- | Assets/Scripts/Unit/TimelineEventProxy.cs | 4 |
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)
{
|