Beispiel #1
0
 public static bool RemoveParticle(SpaceParticle particle)
 {
     if (allParticles.Contains(particle))
     {
         allParticles.Remove(particle);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public static bool AddParticle(SpaceParticle particle)
 {
     if (!allParticles.Contains(particle))
     {
         allParticles.Add(particle);
         return(true);
     }
     else
     {
         return(false);
     }
 }
 public static bool RemoveParticle(SpaceParticle particle)
 {
     if (allParticles.Contains(particle))
     {
         allParticles.Remove(particle);
         return true;
     }
     else
     {
         return false;
     }
 }
 public static bool AddParticle(SpaceParticle particle)
 {
     if (!allParticles.Contains(particle))
     {
         allParticles.Add(particle);
         return true;
     }
     else
     {
         return false;
     }
 }
Beispiel #5
0
 public ParticleInfo(SpaceParticle spaceParticle)
 {
     this.spaceParticle = spaceParticle;
     this.position      = spaceParticle.transform.position;
 }
Beispiel #6
0
 public ParticleInfo(SpaceParticle spaceParticle)
 {
     this.spaceParticle = spaceParticle;
     this.position = spaceParticle.transform.position;
 }