fix: support sub emitter with 'PlayOnAwake'

This commit is contained in:
mob-sakai
2021-02-18 01:55:53 +09:00
parent 3bb5241275
commit d5ce78ae5a
2 changed files with 28 additions and 0 deletions

View File

@@ -65,6 +65,16 @@ namespace Coffee.UIParticleExtensions
return false;
}
public static bool AnyFast<T>(this List<T> self, Predicate<T> predicate) where T : Object
{
for (var i = 0; i < self.Count; ++i)
{
if (self[i] && predicate(self[i])) return true;
}
return false;
}
}
internal static class MeshExtensions