예제 #1
0
 public void addSource(Vector2 position, int period, Particle_Type type)
 {
     Source source = new Source(position, period, type);
     sources.Add(source);
 }
예제 #2
0
 public void addSource(Vector2 position, int period, Particle_Type type, bool screenCoord)
 {
     if(screenCoord)
         position = (position + new Vector2(boundry.X, boundry.Y)) / particleSize;
     Source source = new Source(position, period, type);
     sources.Add(source);
 }