public void ChangeBorderSystem(PlayerController.Shape shape, float r = 1, float g = 1, float b = 1, float a = 1)
 {
     if (isPlaying) {
         Stop();
     }
     foreach(ParticleSystem particleSystem in particlesByShape[(int)shape]) {
         particleSystem.startColor = new Color(r,g,b,a);
         this.currentBorderSystem = shape;
     }
     if (isPlaying) {
         Play();
     }
 }
Beispiel #2
0
 public void ChangeBorderSystem(PlayerController.Shape shape, float r = 1, float g = 1, float b = 1, float a = 1)
 {
     if (isPlaying)
     {
         Stop();
     }
     foreach (ParticleSystem particleSystem in particlesByShape[(int)shape])
     {
         particleSystem.startColor = new Color(r, g, b, a);
         this.currentBorderSystem  = shape;
     }
     if (isPlaying)
     {
         Play();
     }
 }