From 9bec18bccb845234683a8f1f44978e097e4edef8 Mon Sep 17 00:00:00 2001 From: james7132 Date: Thu, 4 Jun 2015 22:48:15 -0400 Subject: [PATCH] Fixed Extensions Added in Last Commit The generic constraints was not making sure it was a reference type being passed in. Should be fixed now. --- Assets/DanmakU/Core/DanmakuExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/DanmakU/Core/DanmakuExtensions.cs b/Assets/DanmakU/Core/DanmakuExtensions.cs index 971c9838..9ef54f56 100644 --- a/Assets/DanmakU/Core/DanmakuExtensions.cs +++ b/Assets/DanmakU/Core/DanmakuExtensions.cs @@ -851,7 +851,7 @@ public static T MatchPrefab (this T danmakus, DanmakuPrefab prefab) where T : #region Fire Functions - public static T Fire(this T danmakus, FireData data, bool useRotation = true) where T : IEnumerable { + public static T Fire(this T danmakus, FireData data, bool useRotation = true) where T : class, IEnumerable{ if (danmakus == null) return null; if (data == null) @@ -884,7 +884,7 @@ public static T Fire(this T danmakus, FireData data, bool useRotation = true return danmakus; } - public static T Fire(this T danmakus, FireBuilder builder, bool useRotation = true) where T : IEnumerable { + public static T Fire(this T danmakus, FireBuilder builder, bool useRotation = true) where T : class, IEnumerable { if (danmakus == null) return null; if (builder == null)