mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Use private
for internally used property
This commit is contained in:
parent
2df4073946
commit
9127a706ac
@ -26,12 +26,13 @@ namespace osu.Game.Graphics
|
||||
/// </summary>
|
||||
public readonly BindableBool Active = new BindableBool();
|
||||
|
||||
public bool HasActiveParticles => Active.Value || (lastParticleAdded + maxLifetime) > Time.Current;
|
||||
public override bool IsPresent => base.IsPresent && HasActiveParticles;
|
||||
public override bool IsPresent => base.IsPresent && hasActiveParticles;
|
||||
|
||||
protected virtual bool CanSpawnParticles => true;
|
||||
protected virtual float ParticleGravity => 0;
|
||||
|
||||
private bool hasActiveParticles => Active.Value || (lastParticleAdded + maxLifetime) > Time.Current;
|
||||
|
||||
protected ParticleSpewer(Texture texture, int perSecond, double maxLifetime)
|
||||
{
|
||||
Texture = texture;
|
||||
|
Loading…
Reference in New Issue
Block a user