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