Beispiel #1
0
 public void SpeakerChange()
 {
     if (musicManager.GetState() == MusicManager.Music.Classical)
     {
         force       = musicManager.ChangeForce(MusicManager.Music.Classical);
         launchForce = new Vector2(0, force);
     }
     else if (musicManager.GetState() == MusicManager.Music.Symphonic)
     {
         force       = musicManager.ChangeForce(MusicManager.Music.Symphonic);
         launchForce = new Vector2(0, force);
     }
     else if (musicManager.GetState() == MusicManager.Music.Rock)
     {
         force       = musicManager.ChangeForce(MusicManager.Music.Rock);
         launchForce = new Vector2(0, force);
     }
     else if (musicManager.GetState() == MusicManager.Music.Metal)
     {
         force       = musicManager.ChangeForce(MusicManager.Music.Metal);
         launchForce = new Vector2(0, force);
     }
     print("Launch Force: X = " + launchForce.x + "| Y = " + launchForce.y);
 }