panghaijiao / HJDanmaku-Swift

A high performance danmaku engine for iOS
http://www.olinone.com/?p=755
MIT License
20 stars 7 forks source link

fix: prepare properly with empty danmakus array #6

Open allenlinli opened 3 years ago

allenlinli commented 3 years ago

prepareDanmakus will not set self.isPrepared = true if the input is an empty array, so I modify it to make sure the self.isPrepared = true.