feat: make emitter spawn first particle just on first update

This commit is contained in:
MihailRis 2024-11-05 03:49:22 +03:00
parent 77ae35e364
commit a4f7dbf786

View File

@ -24,6 +24,7 @@ Emitter::Emitter(
count(count),
preset(std::move(preset)) {
this->prototype.emitter = this;
timer = preset.spawnInterval;
}
const Texture* Emitter::getTexture() const {