Simple particle interaction
This commit is contained in:
@@ -17,11 +17,11 @@ public struct ParticleRelationshipProps
|
||||
|
||||
public class ParticleType
|
||||
{
|
||||
private float _hue;
|
||||
|
||||
private readonly Dictionary<ParticleType, ParticleRelationshipProps> _particleRelationships =
|
||||
new Dictionary<ParticleType, ParticleRelationshipProps>();
|
||||
|
||||
private float _hue;
|
||||
|
||||
public float Hue
|
||||
{
|
||||
get => _hue;
|
||||
@@ -35,4 +35,9 @@ public class ParticleType
|
||||
var props = new ParticleRelationshipProps(minRadius, maxRadius, force);
|
||||
_particleRelationships[type] = props;
|
||||
}
|
||||
|
||||
public ParticleRelationshipProps GetRelationship(ParticleType type)
|
||||
{
|
||||
return _particleRelationships[type];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user