update particles garbage collection scheme

This commit is contained in:
MihailRis
2024-11-02 22:15:26 +03:00
parent cee214754b
commit 1974298c82
5 changed files with 50 additions and 21 deletions
+1
View File
@@ -16,6 +16,7 @@ Emitter::Emitter(
texture(texture),
spawnInterval(spawnInterval),
count(count) {
this->prototype.emitter = this;
}
const Texture* Emitter::getTexture() const {