MrGravity.Game_Objects.Physics_Objects.Player.Kill C# (CSharp) Method

Kill() public method

Handle players death
public Kill ( ) : int
return int
        public override int Kill()
        {
            _mRumble = true;

            SetFaceStraight();
            MCurrentTexture = PlayerFaces.FromString("Dead2");

            StartRumble();

            // reset player to start position
            //this.mPosition = mSpawnPoint;

            // remove a life
            MNumLives--;
            if (MNumLives <= 0)
                MIsAlive = false;

            return MNumLives;
        }