Exemplo n.º 1
0
 public void UpdateWind(int direction)
 {
     CurrentDirection = direction;
     if (direction == 0)
     {
         darkness.SetDarkness(0f);
         cameraEffects.SetSandStorm(false);
         Stop();
     }
     else if (direction == -1)
     {
         darkness.SetDarkness(0.35f);
         cameraEffects.SetSandStorm(true);
         LeftWind.Stop();
         RightWind.Play();
     }
     else
     {
         darkness.SetDarkness(0.35f);
         cameraEffects.SetSandStorm(true);
         LeftWind.Play();
         RightWind.Stop();
     }
 }