private CollidedSurface CheckSurroundings()
    {
        CollidedSurface surfaces = CollidedSurface.None;

        if (Xeo.Collisions.IsGrounded(_characterCollider, _collisionMask, env_check_dist))
        {
            surfaces |= CollidedSurface.Ground;
        }

        if (Xeo.Collisions.IsAgainstLeftWall(_characterCollider, _collisionMask, env_check_dist))
        {
            surfaces |= CollidedSurface.LeftWall;
        }

        if (Xeo.Collisions.IsAgainstRightWall(_characterCollider, _collisionMask, env_check_dist))
        {
            surfaces |= CollidedSurface.RightWall;
        }

        return(surfaces);
    }
 private bool HasFlag(CollidedSurface cs)
 {
     return (collidingAgainst & cs) != CollidedSurface.None;
 }
 public bool HasFlag(CollidedSurface cs)
 {
     return((colliding_against & cs) != CollidedSurface.None);
 }