feat: make emitter spawn first particle just on first update
This commit is contained in:
@@ -24,6 +24,7 @@ Emitter::Emitter(
|
|||||||
count(count),
|
count(count),
|
||||||
preset(std::move(preset)) {
|
preset(std::move(preset)) {
|
||||||
this->prototype.emitter = this;
|
this->prototype.emitter = this;
|
||||||
|
timer = preset.spawnInterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Texture* Emitter::getTexture() const {
|
const Texture* Emitter::getTexture() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user