Added some obvious errors explanations
This commit is contained in:
parent
e9f49a6d5a
commit
17732fe698
125 changed files with 435 additions and 458 deletions
|
|
@ -51,13 +51,13 @@ void Particles2D::set_emitting(bool p_emitting) {
|
|||
|
||||
void Particles2D::set_amount(int p_amount) {
|
||||
|
||||
ERR_FAIL_COND(p_amount < 1);
|
||||
ERR_FAIL_COND_MSG(p_amount < 1, "Amount of particles cannot be smaller than 1.");
|
||||
amount = p_amount;
|
||||
VS::get_singleton()->particles_set_amount(particles, amount);
|
||||
}
|
||||
void Particles2D::set_lifetime(float p_lifetime) {
|
||||
|
||||
ERR_FAIL_COND(p_lifetime <= 0);
|
||||
ERR_FAIL_COND_MSG(p_lifetime <= 0, "Particles lifetime must be greater than 0.");
|
||||
lifetime = p_lifetime;
|
||||
VS::get_singleton()->particles_set_lifetime(particles, lifetime);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue