Dodgeball.Game.Player.takeBall C# (CSharp) Method

takeBall() public method

public takeBall ( Ball ball ) : void
ball Ball
return void
        void takeBall(Ball ball)
        {
            if(!parrying) {
            //SoundEffectInstance sound = Assets.getSound("pickup").CreateInstance();
            //sound.Pitch = 1f + (G.RNG.Next(-99, -20) * 0.01f);
            //sound.Play();
            Assets.getSound("pickup").Play(0.6f, G.RNG.Next(-25, 25)/100f, 0);
              }
              ball.dangerous = false;
              ball.owned = true;
              ball.owner = this;
              this.ball = ball;
              this.ball.pickedUp();
        }