Exemple #1
0
 public void nextEffect()
 {
     if (currentProjectile < projectiles.Length - 1)
     {
         currentProjectile++;
     }
     else
     {
         currentProjectile = 0;
     }
     selectedProjectileButton.getProjectileNames();
 }
Exemple #2
0
 public void nextEffect() //Changes the selected projectile to the next. Used by UI
 {
     if (currentProjectile < projectiles.Length - 1)
     {
         currentProjectile++;
     }
     else
     {
         currentProjectile = 0;
     }
     selectedProjectileButton.getProjectileNames();
 }